containerservice

package
v11.2.2-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package containerservice implements the Azure ARM Containerservice service API version 2015-11-01-preview.

Compute Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Containerservice
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AgentPoolProfile

type AgentPoolProfile struct {
	Name      *string     `json:"name,omitempty"`
	Count     *int32      `json:"count,omitempty"`
	VMSize    VMSizeTypes `json:"vmSize,omitempty"`
	DNSPrefix *string     `json:"dnsPrefix,omitempty"`
	Fqdn      *string     `json:"fqdn,omitempty"`
}

AgentPoolProfile is profile for container service agent pool

type ContainerService

type ContainerService struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*Properties       `json:"properties,omitempty"`
}

ContainerService is container service

type DiagnosticsProfile

type DiagnosticsProfile struct {
	VMDiagnostics *VMDiagnostics `json:"vmDiagnostics,omitempty"`
}

DiagnosticsProfile is

type GroupClient

type GroupClient struct {
	ManagementClient
}

GroupClient is the compute Client

func NewGroupClient

func NewGroupClient(subscriptionID string) GroupClient

NewGroupClient creates an instance of the GroupClient client.

func NewGroupClientWithBaseURI

func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClient

NewGroupClientWithBaseURI creates an instance of the GroupClient client.

func (GroupClient) CreateOrUpdate

func (client GroupClient) CreateOrUpdate(resourceGroupName string, containerServiceName string, parameters ContainerService, cancel <-chan struct{}) (<-chan ContainerService, <-chan error)

CreateOrUpdate the operation to create or update a container service. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. containerServiceName is the name of the container service within the given subscription and resource group. parameters is parameters supplied to the Create Container Service operation.

func (GroupClient) CreateOrUpdatePreparer

func (client GroupClient) CreateOrUpdatePreparer(resourceGroupName string, containerServiceName string, parameters ContainerService, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GroupClient) CreateOrUpdateResponder

func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (GroupClient) CreateOrUpdateSender

func (client GroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (GroupClient) Delete

func (client GroupClient) Delete(resourceGroupName string, containerServiceName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete the operation to delete a container service. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. containerServiceName is the name of the container service within the given subscription and resource group.

func (GroupClient) DeletePreparer

func (client GroupClient) DeletePreparer(resourceGroupName string, containerServiceName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupClient) DeleteResponder

func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupClient) DeleteSender

func (client GroupClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (GroupClient) Get

func (client GroupClient) Get(resourceGroupName string, containerServiceName string) (result ContainerService, err error)

Get the operation to get a container service.

resourceGroupName is the name of the resource group. containerServiceName is the name of the container service within the given subscription and resource group.

func (GroupClient) GetPreparer

func (client GroupClient) GetPreparer(resourceGroupName string, containerServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GroupClient) GetResponder

func (client GroupClient) GetResponder(resp *http.Response) (result ContainerService, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (GroupClient) GetSender

func (client GroupClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (GroupClient) ListByResourceGroup

func (client GroupClient) ListByResourceGroup(resourceGroupName string) (result ListResult, err error)

ListByResourceGroup the operation to list container services.

resourceGroupName is the name of the resource group.

func (GroupClient) ListByResourceGroupPreparer

func (client GroupClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (GroupClient) ListByResourceGroupResponder

func (client GroupClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (GroupClient) ListByResourceGroupSender

func (client GroupClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

type LinuxProfile

type LinuxProfile struct {
	AdminUsername *string           `json:"adminUsername,omitempty"`
	SSH           *SSHConfiguration `json:"ssh,omitempty"`
}

LinuxProfile is profile for Linux VM

type ListResult

type ListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ContainerService `json:"value,omitempty"`
}

ListResult is the List Container Service operation response

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Containerservice.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type MasterProfile

type MasterProfile struct {
	Count     *int32  `json:"count,omitempty"`
	DNSPrefix *string `json:"dnsPrefix,omitempty"`
	Fqdn      *string `json:"fqdn,omitempty"`
}

MasterProfile is profile for container service master

type OchestratorTypes

type OchestratorTypes string

OchestratorTypes enumerates the values for ochestrator types.

const (
	// DCOS specifies the dcos state for ochestrator types.
	DCOS OchestratorTypes = "DCOS"
	// Mesos specifies the mesos state for ochestrator types.
	Mesos OchestratorTypes = "Mesos"
	// SwarmPreview specifies the swarm preview state for ochestrator types.
	SwarmPreview OchestratorTypes = "SwarmPreview"
)

type OrchestratorProfile

type OrchestratorProfile struct {
	OrchestratorType OchestratorTypes `json:"orchestratorType,omitempty"`
}

OrchestratorProfile is profile for Orchestrator

type Properties

type Properties struct {
	ProvisioningState   *string              `json:"provisioningState,omitempty"`
	OrchestratorProfile *OrchestratorProfile `json:"orchestratorProfile,omitempty"`
	MasterProfile       *MasterProfile       `json:"masterProfile,omitempty"`
	AgentPoolProfiles   *[]AgentPoolProfile  `json:"agentPoolProfiles,omitempty"`
	WindowsProfile      *WindowsProfile      `json:"windowsProfile,omitempty"`
	LinuxProfile        *LinuxProfile        `json:"linuxProfile,omitempty"`
	DiagnosticsProfile  *DiagnosticsProfile  `json:"diagnosticsProfile,omitempty"`
}

Properties is properties of container service

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is the Resource model definition.

type SSHConfiguration

type SSHConfiguration struct {
	PublicKeys *[]SSHPublicKey `json:"publicKeys,omitempty"`
}

SSHConfiguration is SSH configuration for Linux based VMs running on Azure

type SSHPublicKey

type SSHPublicKey struct {
	KeyData *string `json:"keyData,omitempty"`
}

SSHPublicKey is contains information about SSH certificate public key data.

type VMDiagnostics

type VMDiagnostics struct {
	Enabled    *bool   `json:"enabled,omitempty"`
	StorageURI *string `json:"storageUri,omitempty"`
}

VMDiagnostics is describes VM Diagnostics.

type VMSizeTypes

type VMSizeTypes string

VMSizeTypes enumerates the values for vm size types.

const (
	// StandardA0 specifies the standard a0 state for vm size types.
	StandardA0 VMSizeTypes = "Standard_A0"
	// StandardA1 specifies the standard a1 state for vm size types.
	StandardA1 VMSizeTypes = "Standard_A1"
	// StandardA10 specifies the standard a10 state for vm size types.
	StandardA10 VMSizeTypes = "Standard_A10"
	// StandardA11 specifies the standard a11 state for vm size types.
	StandardA11 VMSizeTypes = "Standard_A11"
	// StandardA2 specifies the standard a2 state for vm size types.
	StandardA2 VMSizeTypes = "Standard_A2"
	// StandardA3 specifies the standard a3 state for vm size types.
	StandardA3 VMSizeTypes = "Standard_A3"
	// StandardA4 specifies the standard a4 state for vm size types.
	StandardA4 VMSizeTypes = "Standard_A4"
	// StandardA5 specifies the standard a5 state for vm size types.
	StandardA5 VMSizeTypes = "Standard_A5"
	// StandardA6 specifies the standard a6 state for vm size types.
	StandardA6 VMSizeTypes = "Standard_A6"
	// StandardA7 specifies the standard a7 state for vm size types.
	StandardA7 VMSizeTypes = "Standard_A7"
	// StandardA8 specifies the standard a8 state for vm size types.
	StandardA8 VMSizeTypes = "Standard_A8"
	// StandardA9 specifies the standard a9 state for vm size types.
	StandardA9 VMSizeTypes = "Standard_A9"
	// StandardD1 specifies the standard d1 state for vm size types.
	StandardD1 VMSizeTypes = "Standard_D1"
	// StandardD11 specifies the standard d11 state for vm size types.
	StandardD11 VMSizeTypes = "Standard_D11"
	// StandardD11V2 specifies the standard d11v2 state for vm size types.
	StandardD11V2 VMSizeTypes = "Standard_D11_v2"
	// StandardD12 specifies the standard d12 state for vm size types.
	StandardD12 VMSizeTypes = "Standard_D12"
	// StandardD12V2 specifies the standard d12v2 state for vm size types.
	StandardD12V2 VMSizeTypes = "Standard_D12_v2"
	// StandardD13 specifies the standard d13 state for vm size types.
	StandardD13 VMSizeTypes = "Standard_D13"
	// StandardD13V2 specifies the standard d13v2 state for vm size types.
	StandardD13V2 VMSizeTypes = "Standard_D13_v2"
	// StandardD14 specifies the standard d14 state for vm size types.
	StandardD14 VMSizeTypes = "Standard_D14"
	// StandardD14V2 specifies the standard d14v2 state for vm size types.
	StandardD14V2 VMSizeTypes = "Standard_D14_v2"
	// StandardD1V2 specifies the standard d1v2 state for vm size types.
	StandardD1V2 VMSizeTypes = "Standard_D1_v2"
	// StandardD2 specifies the standard d2 state for vm size types.
	StandardD2 VMSizeTypes = "Standard_D2"
	// StandardD2V2 specifies the standard d2v2 state for vm size types.
	StandardD2V2 VMSizeTypes = "Standard_D2_v2"
	// StandardD3 specifies the standard d3 state for vm size types.
	StandardD3 VMSizeTypes = "Standard_D3"
	// StandardD3V2 specifies the standard d3v2 state for vm size types.
	StandardD3V2 VMSizeTypes = "Standard_D3_v2"
	// StandardD4 specifies the standard d4 state for vm size types.
	StandardD4 VMSizeTypes = "Standard_D4"
	// StandardD4V2 specifies the standard d4v2 state for vm size types.
	StandardD4V2 VMSizeTypes = "Standard_D4_v2"
	// StandardD5V2 specifies the standard d5v2 state for vm size types.
	StandardD5V2 VMSizeTypes = "Standard_D5_v2"
	// StandardDS1 specifies the standard ds1 state for vm size types.
	StandardDS1 VMSizeTypes = "Standard_DS1"
	// StandardDS11 specifies the standard ds11 state for vm size types.
	StandardDS11 VMSizeTypes = "Standard_DS11"
	// StandardDS12 specifies the standard ds12 state for vm size types.
	StandardDS12 VMSizeTypes = "Standard_DS12"
	// StandardDS13 specifies the standard ds13 state for vm size types.
	StandardDS13 VMSizeTypes = "Standard_DS13"
	// StandardDS14 specifies the standard ds14 state for vm size types.
	StandardDS14 VMSizeTypes = "Standard_DS14"
	// StandardDS2 specifies the standard ds2 state for vm size types.
	StandardDS2 VMSizeTypes = "Standard_DS2"
	// StandardDS3 specifies the standard ds3 state for vm size types.
	StandardDS3 VMSizeTypes = "Standard_DS3"
	// StandardDS4 specifies the standard ds4 state for vm size types.
	StandardDS4 VMSizeTypes = "Standard_DS4"
	// StandardG1 specifies the standard g1 state for vm size types.
	StandardG1 VMSizeTypes = "Standard_G1"
	// StandardG2 specifies the standard g2 state for vm size types.
	StandardG2 VMSizeTypes = "Standard_G2"
	// StandardG3 specifies the standard g3 state for vm size types.
	StandardG3 VMSizeTypes = "Standard_G3"
	// StandardG4 specifies the standard g4 state for vm size types.
	StandardG4 VMSizeTypes = "Standard_G4"
	// StandardG5 specifies the standard g5 state for vm size types.
	StandardG5 VMSizeTypes = "Standard_G5"
	// StandardGS1 specifies the standard gs1 state for vm size types.
	StandardGS1 VMSizeTypes = "Standard_GS1"
	// StandardGS2 specifies the standard gs2 state for vm size types.
	StandardGS2 VMSizeTypes = "Standard_GS2"
	// StandardGS3 specifies the standard gs3 state for vm size types.
	StandardGS3 VMSizeTypes = "Standard_GS3"
	// StandardGS4 specifies the standard gs4 state for vm size types.
	StandardGS4 VMSizeTypes = "Standard_GS4"
	// StandardGS5 specifies the standard gs5 state for vm size types.
	StandardGS5 VMSizeTypes = "Standard_GS5"
)

type WindowsProfile

type WindowsProfile struct {
	AdminUsername *string `json:"adminUsername,omitempty"`
	AdminPassword *string `json:"adminPassword,omitempty"`
}

WindowsProfile is profile for Windows jumpbox

Jump to

Keyboard shortcuts

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