attachinterfaces

package
v0.0.0-...-4cda982 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.

Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API owns the client and provides concrete inputs, optional extensions and normalized results.

func New

func New(client *gophercloud.ServiceClient) *API

func (*API) Create

func (a *API) Create(ctx context.Context, serverID string, opts CreateOpts, options ...CreateOption) (*Interface, error)

Create invokes the upstream API with library-owned builders and result handling.

func (*API) Delete

func (a *API) Delete(ctx context.Context, serverID string, portID string) error

Delete invokes the upstream API with library-owned builders and result handling.

func (*API) Get

func (a *API) Get(ctx context.Context, serverID string, portID string) (*Interface, error)

Get invokes the upstream API with library-owned builders and result handling.

func (*API) InServer

func (a *API) InServer(ctx context.Context, parent resource.Ref) (*InterfaceScope, error)

InServer resolves the parent once; explicit IDs require no lookup request.

func (*API) List

func (a *API) List(ctx context.Context, serverID string) iter.Seq2[*Interface, error]

List invokes the upstream API with library-owned builders and result handling.

func (*API) RawClient

func (a *API) RawClient() *gophercloud.ServiceClient

type CreateOption

type CreateOption = request.Option[CreateOpts]

func WithCreateField

func WithCreateField(key string, value any) CreateOption

func WithCreateOptions

func WithCreateOptions(value CreateOpts) CreateOption

type CreateOpts

type CreateOpts = upstream.CreateOpts

type CreateResult

type CreateResult = upstream.CreateResult

type DeleteResult

type DeleteResult = upstream.DeleteResult

type FixedIP

type FixedIP = upstream.FixedIP

type GetResult

type GetResult = upstream.GetResult

type Interface

type Interface = upstream.Interface

type InterfacePage

type InterfacePage = upstream.InterfacePage

type InterfaceScope

type InterfaceScope struct {
	*resource.Collection[Interface]
	// contains filtered or unexported fields
}

InterfaceScope fixes the parent of its resources, sharing the SDK's lookup and wait policies.

func (*InterfaceScope) Create

func (s *InterfaceScope) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*Interface, error)

Create applies Create within the fixed parent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL