Documentation ¶
Overview ¶
Package containerserviceclient implements the client for azure container service.
Index ¶
- Constants
- type Client
- func (c *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedClusterName string, ...) *retry.Error
- func (c *Client) Delete(ctx context.Context, resourceGroupName string, managedClusterName string) *retry.Error
- func (c *Client) Get(ctx context.Context, resourceGroupName string, managedClusterName string) (containerservice.ManagedCluster, *retry.Error)
- func (c *Client) List(ctx context.Context, resourceGroupName string) ([]containerservice.ManagedCluster, *retry.Error)
- type Interface
- type ManagedClusterResultPage
- func (page *ManagedClusterResultPage) Next() error
- func (page *ManagedClusterResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ManagedClusterResultPage) NotDone() bool
- func (page ManagedClusterResultPage) Response() containerservice.ManagedClusterListResult
- func (page ManagedClusterResultPage) Values() []containerservice.ManagedCluster
Constants ¶
const (
// APIVersion is the API version for containerservice.
APIVersion = "2020-04-01"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // ARM throttling configures. RetryAfterReader time.Time RetryAfterWriter time.Time // contains filtered or unexported fields }
Client implements ContainerService client Interface.
func New ¶
func New(config *azclients.ClientConfig) *Client
New creates a new ContainerServiceClient client with ratelimiting.
func (*Client) CreateOrUpdate ¶
func (c *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedClusterName string, parameters containerservice.ManagedCluster, etag string) *retry.Error
CreateOrUpdate creates or updates a ManagedCluster.
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, resourceGroupName string, managedClusterName string) *retry.Error
Delete deletes a ManagedCluster by name.
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, resourceGroupName string, managedClusterName string) (containerservice.ManagedCluster, *retry.Error)
Get gets a ManagedCluster.
func (*Client) List ¶
func (c *Client) List(ctx context.Context, resourceGroupName string) ([]containerservice.ManagedCluster, *retry.Error)
List gets a list of ManagedClusters in the resource group.
type Interface ¶
type Interface interface { CreateOrUpdate(ctx context.Context, resourceGroupName string, managedClusterName string, parameters containerservice.ManagedCluster, etag string) *retry.Error Delete(ctx context.Context, resourceGroupName string, managedClusterName string) *retry.Error Get(ctx context.Context, resourceGroupName string, managedClusterName string) (containerservice.ManagedCluster, *retry.Error) List(ctx context.Context, resourceGroupName string) ([]containerservice.ManagedCluster, *retry.Error) }
Interface is the client interface for ContainerService. Don't forget to run the following command to generate the mock client: mockgen -source=$GOPATH/src/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/clients/containerserviceclient/interface.go -package=mockcontainerserviceclient Interface > $GOPATH/src/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/clients/containerserviceclient/mockcontainerserviceclient/interface.go
type ManagedClusterResultPage ¶
type ManagedClusterResultPage struct {
// contains filtered or unexported fields
}
ManagedClusterResultPage contains a page of ManagedCluster values.
func (*ManagedClusterResultPage) Next ¶
func (page *ManagedClusterResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ManagedClusterResultPage) NextWithContext ¶
func (page *ManagedClusterResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ManagedClusterResultPage) NotDone ¶
func (page ManagedClusterResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ManagedClusterResultPage) Response ¶
func (page ManagedClusterResultPage) Response() containerservice.ManagedClusterListResult
Response returns the raw server response from the last page request.
func (ManagedClusterResultPage) Values ¶
func (page ManagedClusterResultPage) Values() []containerservice.ManagedCluster
Values returns the slice of values for the current page or nil if there are no values.