azure

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 20 Imported by: 3

Documentation

Index

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

func Init

func Init()

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

func (*CreateGroupStep) Rollback

func (*CreateGroupStep) Run

func (s *CreateGroupStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (*CreateLBStep) Rollback

func (*CreateLBStep) Run

func (s *CreateLBStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (*CreateSecurityGroupStep) Rollback

func (*CreateSecurityGroupStep) Run

func (s *CreateSecurityGroupStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (*CreateVMStep) Rollback

func (*CreateVMStep) Run

func (s *CreateVMStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (*CreateVirtualNetworkStep) Rollback

func (*CreateVirtualNetworkStep) Run

func (s *CreateVirtualNetworkStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (DeleteClusterStep) Rollback

func (DeleteClusterStep) Run

func (s DeleteClusterStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (*DeleteVMStep) Rollback

func (*DeleteVMStep) Run

func (s *DeleteVMStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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

func (*GetAuthorizerStep) Rollback

func (*GetAuthorizerStep) Run

func (s *GetAuthorizerStep) Run(ctx context.Context, output io.Writer, config *steps.Config) error

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 NICInterface interface {
	CreateOrUpdate(ctx context.Context, groupName string, nicName string, params network.Interface) (network.InterfacesCreateOrUpdateFuture, error)
	Get(ctx context.Context, groupName string, nicName string, expand string) (network.Interface, error)
}

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 NewSDK

func NewSDK() SDK

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 (s SDK) RestClient(a autorest.Authorizer, subscriptionID string) autorest.Client

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)

Jump to

Keyboard shortcuts

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