Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, organizationID identityids.OrganizationID, ...) (*openapi.NetworkRead, error)
- func (c *Client) CreateV2(ctx context.Context, request *openapi.NetworkV2Create) (*openapi.NetworkV2Read, error)
- func (c *Client) Delete(ctx context.Context, organizationID identityids.OrganizationID, ...) error
- func (c *Client) DeleteV2(ctx context.Context, networkID regionids.NetworkID) error
- func (c *Client) Get(ctx context.Context, organizationID identityids.OrganizationID, ...) (*openapi.NetworkRead, error)
- func (c *Client) GetRaw(ctx context.Context, organizationID identityids.OrganizationID, ...) (*unikornv1.Network, error)
- func (c *Client) GetV2(ctx context.Context, networkID regionids.NetworkID) (*openapi.NetworkV2Read, error)
- func (c *Client) GetV2Raw(ctx context.Context, networkID string) (*regionv1.Network, error)
- func (c *Client) List(ctx context.Context, organizationID identityids.OrganizationID) (openapi.NetworksRead, error)
- func (c *Client) ListV2(ctx context.Context, params openapi.GetApiV2NetworksParams) (openapi.NetworksV2Read, error)
- func (c *Client) ReferenceCreateV2(ctx context.Context, networkID regionids.NetworkID, reference string) error
- func (c *Client) ReferenceDeleteV2(ctx context.Context, networkID regionids.NetworkID, reference string) error
- func (c *Client) Update(ctx context.Context, networkID regionids.NetworkID, ...) (*openapi.NetworkV2Read, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
common.ClientArgs
}
Client provides a restful API for networks.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, organizationID identityids.OrganizationID, projectID identityids.ProjectID, identityID regionids.IdentityID, request *openapi.NetworkWrite) (*openapi.NetworkRead, error)
Create instantiates a new resource.
func (*Client) CreateV2 ¶ added in v1.10.0
func (c *Client) CreateV2(ctx context.Context, request *openapi.NetworkV2Create) (*openapi.NetworkV2Read, error)
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, organizationID identityids.OrganizationID, projectID identityids.ProjectID, networkID regionids.NetworkID) error
Delete a resource.
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, organizationID identityids.OrganizationID, projectID identityids.ProjectID, networkID regionids.NetworkID) (*openapi.NetworkRead, error)
Get a resource.
func (*Client) GetRaw ¶
func (c *Client) GetRaw(ctx context.Context, organizationID identityids.OrganizationID, projectID identityids.ProjectID, networkID string) (*unikornv1.Network, error)
GetRaw gives access to the raw Kubernetes resource.
func (*Client) List ¶
func (c *Client) List(ctx context.Context, organizationID identityids.OrganizationID) (openapi.NetworksRead, error)
List returns an ordered list of all resources in scope.
func (*Client) ListV2 ¶ added in v1.10.0
func (c *Client) ListV2(ctx context.Context, params openapi.GetApiV2NetworksParams) (openapi.NetworksV2Read, error)
func (*Client) ReferenceCreateV2 ¶ added in v1.16.0
func (c *Client) ReferenceCreateV2(ctx context.Context, networkID regionids.NetworkID, reference string) error
ReferenceCreateV2 adds a external reference to the resource that blocks deletion until it has been removed.
Click to show internal directories.
Click to hide internal directories.