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
- type API
- func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*Network, error)
- func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*Network, error)
- func (a *API) Delete(ctx context.Context, networkID string) error
- func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Network, error)
- func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*Network, error)
- func (a *API) Get(ctx context.Context, id string) (*Network, error)
- func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Network, error]
- func (a *API) RawClient() *gophercloud.ServiceClient
- func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error
- func (a *API) ResourceAdapter() resource.Adapter[Network]
- func (a *API) Update(ctx context.Context, networkID string, opts UpdateOpts, ...) (*Network, error)
- func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, ...) (*Network, error)
- func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error
- type CreateOption
- type CreateOpts
- type CreateResult
- type DeleteResult
- type GetResult
- type ListOption
- type ListOpts
- type Network
- type NetworkPage
- type UpdateOption
- type UpdateOpts
- type UpdateResult
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) 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 ¶
Delete invokes the upstream API with library-owned builders and result handling.
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) RawClient ¶
func (a *API) RawClient() *gophercloud.ServiceClient
func (*API) ResourceAdapter ¶
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) WaitForDeletion ¶
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 ListOption ¶
func WithListOptions ¶
func WithListOptions(value ListOpts) ListOption
func WithListQuery ¶
func WithListQuery(key, value string) ListOption
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
Click to show internal directories.
Click to hide internal directories.