Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.
Index ¶
- type ContainerClient
- func (c *ContainerClient) CreateOrUpdate(ctx context.Context, location, name string, storage *storage.Container) (*storage.Container, error)
- func (c *ContainerClient) Delete(ctx context.Context, location, name string) error
- func (c *ContainerClient) Get(ctx context.Context, location, name string) (*[]storage.Container, error)
- func (c *ContainerClient) Precheck(ctx context.Context, location string, containers []*storage.Container) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerClient ¶
type ContainerClient struct { storage.BaseClient // contains filtered or unexported fields }
Client structure
func NewContainerClient ¶
func NewContainerClient(cloudFQDN string, authorizer auth.Authorizer) (*ContainerClient, error)
NewClient method returns new client
func (*ContainerClient) CreateOrUpdate ¶
func (c *ContainerClient) CreateOrUpdate(ctx context.Context, location, name string, storage *storage.Container) (*storage.Container, error)
CreateOrUpdate methods invokes create or update on the client
func (*ContainerClient) Delete ¶
func (c *ContainerClient) Delete(ctx context.Context, location, name string) error
Delete methods invokes delete of the storage resource
func (*ContainerClient) Get ¶
func (c *ContainerClient) Get(ctx context.Context, location, name string) (*[]storage.Container, error)
Get methods invokes the client Get method
func (*ContainerClient) Precheck ¶ added in v0.19.3
func (c *ContainerClient) Precheck(ctx context.Context, location string, containers []*storage.Container) (bool, error)
Prechecks whether the system is able to create specified resources. Returns true if it is possible; or false with reason in error message if not.
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]storage.Container, error) CreateOrUpdate(context.Context, string, string, *storage.Container) (*storage.Container, error) Delete(context.Context, string, string) error Precheck(ctx context.Context, location string, containers []*storage.Container) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.