networks

package
v0.0.0-...-78de79c 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: 13 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

View Source
const StatusActive = upstream.StatusActive
View Source
const StatusBuild = upstream.StatusBuild
View Source
const StatusDown = upstream.StatusDown
View Source
const StatusError = upstream.StatusError

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Resources *resource.Collection[Network]
	// contains filtered or unexported fields
}

API owns typed operations and their shared resource policies.

func New

func New(client *gophercloud.ServiceClient) *API

func (*API) All

func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*Network, error)

func (*API) Create

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

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

func (*API) Delete

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

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

func (*API) Find

func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Network, error)

func (*API) FindIdentity

func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*Network, error)

FindIdentity tries an ID request before exact ID/name fallback within this collection.

func (*API) Get

func (a *API) Get(ctx context.Context, id string) (*Network, error)

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

func (*API) List

func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Network, error]

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

func (*API) RawClient

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

func (*API) Remove

func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error

func (*API) ResourceAdapter

func (a *API) ResourceAdapter() resource.Adapter[Network]

ResourceAdapter returns a fresh SDK-owned adapter for composing the Network facade.

func (*API) Update

func (a *API) Update(ctx context.Context, networkID string, opts UpdateOpts, options ...UpdateOption) (*Network, error)

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

func (*API) WaitFor

func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, options ...resource.WaitOption) (*Network, error)

func (*API) WaitForDeletion

func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error

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 GetResult

type GetResult = upstream.GetResult

type ListOption

type ListOption = request.Option[ListOpts]

func WithListOptions

func WithListOptions(value ListOpts) ListOption

func WithListQuery

func WithListQuery(key, value string) ListOption

type ListOpts

type ListOpts = upstream.ListOpts

type Network

type Network = upstream.Network

type NetworkPage

type NetworkPage = upstream.NetworkPage

type UpdateOption

type UpdateOption = request.Option[UpdateOpts]

func WithUpdateField

func WithUpdateField(key string, value any) UpdateOption

func WithUpdateOptions

func WithUpdateOptions(value UpdateOpts) UpdateOption

type UpdateOpts

type UpdateOpts = upstream.UpdateOpts

type UpdateResult

type UpdateResult = upstream.UpdateResult

Jump to

Keyboard shortcuts

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