Documentation ¶
Index ¶
- Constants
- Variables
- func Init()
- type Authorizerer
- type CreadentialsClientFn
- type CreateGroupStep
- func (s *CreateGroupStep) Depends() []string
- func (s *CreateGroupStep) Description() string
- func (s *CreateGroupStep) Name() string
- func (s *CreateGroupStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *CreateGroupStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error
- type CreateLBStep
- type CreateSecurityGroupStep
- func (s *CreateSecurityGroupStep) Depends() []string
- func (s *CreateSecurityGroupStep) Description() string
- func (s *CreateSecurityGroupStep) Name() string
- func (s *CreateSecurityGroupStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *CreateSecurityGroupStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error
- type CreateVMStep
- type CreateVirtualNetworkStep
- func (s *CreateVirtualNetworkStep) Depends() []string
- func (s *CreateVirtualNetworkStep) Description() string
- func (s *CreateVirtualNetworkStep) Name() string
- func (s *CreateVirtualNetworkStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *CreateVirtualNetworkStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error
- type DeleteClusterStep
- func (s DeleteClusterStep) Depends() []string
- func (s DeleteClusterStep) Description() string
- func (s DeleteClusterStep) Name() string
- func (s DeleteClusterStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s DeleteClusterStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error
- type DeleteVMStep
- type GetAuthorizerStep
- func (s *GetAuthorizerStep) Depends() []string
- func (s *GetAuthorizerStep) Description() string
- func (s *GetAuthorizerStep) Name() string
- func (s *GetAuthorizerStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *GetAuthorizerStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error
- type GroupsClientFn
- type GroupsInterface
- type NICInterface
- type NSGClientFn
- type PublicAddressInterface
- type SDK
- func (s SDK) AvailabilitySetClient(a autorest.Authorizer, subscriptionID string) compute.AvailabilitySetsClient
- func (s SDK) LBClient(a autorest.Authorizer, subscriptionID string) network.LoadBalancersClient
- func (s SDK) NICClient(a autorest.Authorizer, subscriptionID string) NICInterface
- func (s SDK) NSGClient(a autorest.Authorizer, subscriptionID string) SecurityGroupInterface
- func (s SDK) PublicAddressesClient(a autorest.Authorizer, subscriptionID string) PublicAddressInterface
- func (s SDK) RestClient(a autorest.Authorizer, subscriptionID string) autorest.Client
- func (s SDK) SubnetClient(a autorest.Authorizer, subscriptionID string) SubnetGetter
- func (s SDK) VMClient(a autorest.Authorizer, subscriptionID string) VMInterface
- type SDKInterface
- type SecurityGroupInterface
- type SubnetClientFn
- type SubnetGetter
- type VMInterface
- type VNetClientFn
- type VirtualNetworkCreator
Constants ¶
View Source
const ( CreateLBStepName = "CreateLoadBalancer" APIServerPort = 443 )
View Source
const ( CreateVMStepName = "CreateVirtualMachine" UbuntuPublisher = "Canonical" UbuntuOffer = "UbuntuServer" UbuntuSKU = "18.04-LTS" OSUser = "supergiant" )
View Source
const CreateGroupStepName = "CreateResourceGroup"
View Source
const CreateSecurityGroupStepName = "CreateNetworkSecurityGroup"
View Source
const CreateVNetAndSubnetsStepName = "CreateVirtualNetworkNetworkAndSubnets"
View Source
const DeleteClusterStepName = "DeleteCluster"
View Source
const DeleteVMStepName = "DeleteVirtualMachine"
View Source
const GetAuthorizerStepName = "GetAuthorizer"
Variables ¶
View Source
var VNetCreationTimeout = 60 * time.Second
Functions ¶
Types ¶
type Authorizerer ¶
type Authorizerer interface {
Authorizer() (autorest.Authorizer, error)
}
type CreadentialsClientFn ¶
type CreadentialsClientFn func(clientID string, clientSecret string, tenantID string) Authorizerer
type CreateGroupStep ¶
type CreateGroupStep struct {
// contains filtered or unexported fields
}
func NewCreateGroupStep ¶
func NewCreateGroupStep() *CreateGroupStep
func (*CreateGroupStep) Depends ¶
func (s *CreateGroupStep) Depends() []string
func (*CreateGroupStep) Description ¶
func (s *CreateGroupStep) Description() string
func (*CreateGroupStep) Name ¶
func (s *CreateGroupStep) Name() string
type CreateLBStep ¶
type CreateLBStep struct {
// contains filtered or unexported fields
}
func NewCreateLBStep ¶
func NewCreateLBStep(s SDK) *CreateLBStep
func (*CreateLBStep) Depends ¶
func (s *CreateLBStep) Depends() []string
func (*CreateLBStep) Description ¶
func (s *CreateLBStep) Description() string
func (*CreateLBStep) Name ¶
func (s *CreateLBStep) Name() string
type CreateSecurityGroupStep ¶
type CreateSecurityGroupStep struct {
// contains filtered or unexported fields
}
func NewCreateSecurityGroupStep ¶
func NewCreateSecurityGroupStep() *CreateSecurityGroupStep
func (*CreateSecurityGroupStep) Depends ¶
func (s *CreateSecurityGroupStep) Depends() []string
func (*CreateSecurityGroupStep) Description ¶
func (s *CreateSecurityGroupStep) Description() string
func (*CreateSecurityGroupStep) Name ¶
func (s *CreateSecurityGroupStep) Name() string
type CreateVMStep ¶
type CreateVMStep struct {
// contains filtered or unexported fields
}
func NewCreateVMStep ¶
func NewCreateVMStep(s SDK) *CreateVMStep
func (*CreateVMStep) Depends ¶
func (s *CreateVMStep) Depends() []string
func (*CreateVMStep) Description ¶
func (s *CreateVMStep) Description() string
func (*CreateVMStep) Name ¶
func (s *CreateVMStep) Name() string
type CreateVirtualNetworkStep ¶
type CreateVirtualNetworkStep struct {
// contains filtered or unexported fields
}
func NewCreateVirtualNetworkStep ¶
func NewCreateVirtualNetworkStep() *CreateVirtualNetworkStep
func (*CreateVirtualNetworkStep) Depends ¶
func (s *CreateVirtualNetworkStep) Depends() []string
func (*CreateVirtualNetworkStep) Description ¶
func (s *CreateVirtualNetworkStep) Description() string
func (*CreateVirtualNetworkStep) Name ¶
func (s *CreateVirtualNetworkStep) Name() string
type DeleteClusterStep ¶
type DeleteClusterStep struct {
// contains filtered or unexported fields
}
func NewDeleteClusterStep ¶
func NewDeleteClusterStep(s SDK) *DeleteClusterStep
func (DeleteClusterStep) Depends ¶
func (s DeleteClusterStep) Depends() []string
func (DeleteClusterStep) Description ¶
func (s DeleteClusterStep) Description() string
func (DeleteClusterStep) Name ¶
func (s DeleteClusterStep) Name() string
type DeleteVMStep ¶
type DeleteVMStep struct {
// contains filtered or unexported fields
}
func NewDeleteVMStep ¶
func NewDeleteVMStep(s SDK) *DeleteVMStep
func (*DeleteVMStep) Depends ¶
func (s *DeleteVMStep) Depends() []string
func (*DeleteVMStep) Description ¶
func (s *DeleteVMStep) Description() string
func (*DeleteVMStep) Name ¶
func (s *DeleteVMStep) Name() string
type GetAuthorizerStep ¶
type GetAuthorizerStep struct {
// contains filtered or unexported fields
}
func NewGetAuthorizerStepStep ¶
func NewGetAuthorizerStepStep() *GetAuthorizerStep
func (*GetAuthorizerStep) Depends ¶
func (s *GetAuthorizerStep) Depends() []string
func (*GetAuthorizerStep) Description ¶
func (s *GetAuthorizerStep) Description() string
func (*GetAuthorizerStep) Name ¶
func (s *GetAuthorizerStep) Name() string
type GroupsClientFn ¶
type GroupsClientFn func(a autorest.Authorizer, subscriptionID string) GroupsInterface
type GroupsInterface ¶
type GroupsInterface interface { CreateOrUpdate(ctx context.Context, name string, grp resources.Group) (resources.Group, error) Delete(ctx context.Context, name string) (resources.GroupsDeleteFuture, error) }
func GroupsClientFor ¶
func GroupsClientFor(a autorest.Authorizer, subscriptionID string) GroupsInterface
type NICInterface ¶
type NSGClientFn ¶
type NSGClientFn func(a autorest.Authorizer, subscriptionID string) (SecurityGroupInterface, autorest.Client)
type PublicAddressInterface ¶
type PublicAddressInterface interface { CreateOrUpdate(ctx context.Context, groupName string, ipName string, params network.PublicIPAddress) (network.PublicIPAddressesCreateOrUpdateFuture, error) Get(ctx context.Context, groupName string, ipName string, expand string) (network.PublicIPAddress, error) }
type SDK ¶
type SDK struct { }
func (SDK) AvailabilitySetClient ¶
func (s SDK) AvailabilitySetClient(a autorest.Authorizer, subscriptionID string) compute.AvailabilitySetsClient
func (SDK) LBClient ¶
func (s SDK) LBClient(a autorest.Authorizer, subscriptionID string) network.LoadBalancersClient
func (SDK) NICClient ¶
func (s SDK) NICClient(a autorest.Authorizer, subscriptionID string) NICInterface
func (SDK) NSGClient ¶
func (s SDK) NSGClient(a autorest.Authorizer, subscriptionID string) SecurityGroupInterface
func (SDK) PublicAddressesClient ¶
func (s SDK) PublicAddressesClient(a autorest.Authorizer, subscriptionID string) PublicAddressInterface
func (SDK) RestClient ¶
func (SDK) SubnetClient ¶
func (s SDK) SubnetClient(a autorest.Authorizer, subscriptionID string) SubnetGetter
func (SDK) VMClient ¶
func (s SDK) VMClient(a autorest.Authorizer, subscriptionID string) VMInterface
type SDKInterface ¶
type SDKInterface interface { RestClient(a autorest.Authorizer, subscriptionID string) autorest.Client PublicAddressesClient(a autorest.Authorizer, subscriptionID string) PublicAddressInterface NICClient(a autorest.Authorizer, subscriptionID string) NICInterface SubnetClient(a autorest.Authorizer, subscriptionID string) SubnetGetter NSGClient(a autorest.Authorizer, subscriptionID string) SecurityGroupInterface VMClient(a autorest.Authorizer, subscriptionID string) VMInterface LBClient(a autorest.Authorizer, subscriptionID string) network.LoadBalancersClient AvailabilitySetClient(a autorest.Authorizer, subscriptionID string) compute.AvailabilitySetsClient }
type SecurityGroupInterface ¶
type SecurityGroupInterface interface { CreateOrUpdate(ctx context.Context, groupName string, nsgName string, params network.SecurityGroup) (network.SecurityGroupsCreateOrUpdateFuture, error) Get(ctx context.Context, groupName string, nsgName string, expand string) (network.SecurityGroup, error) }
func NSGClientFor ¶
func NSGClientFor(a autorest.Authorizer, subscriptionID string) (SecurityGroupInterface, autorest.Client)
type SubnetClientFn ¶
type SubnetClientFn func(a autorest.Authorizer, subscriptionID string) SubnetGetter
type SubnetGetter ¶
type SubnetGetter interface {
Get(ctx context.Context, groupName, vnetName, subnetName, expand string) (network.Subnet, error)
}
func SubnetClientFor ¶
func SubnetClientFor(a autorest.Authorizer, subscriptionID string) SubnetGetter
type VMInterface ¶
type VMInterface interface { CreateOrUpdate(ctx context.Context, groupName string, vmName string, params compute.VirtualMachine) (compute.VirtualMachinesCreateOrUpdateFuture, error) Get(ctx context.Context, groupName string, vmName string, expand compute.InstanceViewTypes) (compute.VirtualMachine, error) Delete(ctx context.Context, groupName string, vmName string) (compute.VirtualMachinesDeleteFuture, error) }
type VNetClientFn ¶
type VNetClientFn func(a autorest.Authorizer, subscriptionID string) (VirtualNetworkCreator, autorest.Client)
type VirtualNetworkCreator ¶
type VirtualNetworkCreator interface {
CreateOrUpdate(ctx context.Context, groupName string, vnetName string, params network.VirtualNetwork) (network.VirtualNetworksCreateOrUpdateFuture, error)
}
func VNetClientFor ¶
func VNetClientFor(a autorest.Authorizer, subscriptionID string) (VirtualNetworkCreator, autorest.Client)
Click to show internal directories.
Click to hide internal directories.