client

package
v2.2.0-pre Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client for Azure.

func NewFromDefault

func NewFromDefault(subscriptionID, tenantID string) (*Client, error)

NewFromDefault creates a client with initialized clients.

func NewInitialized

func NewInitialized(subscriptionID, tenantID, name, location, resourceGroup string) (*Client, error)

NewInitialized creates and initializes client by setting the subscriptionID, location and name of the Constellation.

func (*Client) CreateApplicationInsight

func (c *Client) CreateApplicationInsight(ctx context.Context) error

func (*Client) CreateExternalLoadBalancer

func (c *Client) CreateExternalLoadBalancer(ctx context.Context, isDebugCluster bool) error

CreateExternalLoadBalancer creates an external load balancer.

func (*Client) CreateInstances

func (c *Client) CreateInstances(ctx context.Context, input CreateInstancesInput) error

func (*Client) CreateSecurityGroup

func (c *Client) CreateSecurityGroup(ctx context.Context, input NetworkSecurityGroupInput) error

CreateSecurityGroup creates a security group containing firewall rules.

func (*Client) CreateVirtualNetwork

func (c *Client) CreateVirtualNetwork(ctx context.Context) error

CreateVirtualNetwork creates a virtual network.

func (*Client) GetState

func (c *Client) GetState() state.ConstellationState

GetState returns the state of the client as ConstellationState.

func (*Client) SetState

func (c *Client) SetState(stat state.ConstellationState)

SetState sets the state of the client to the handed ConstellationState.

func (*Client) TerminateResourceGroupResources

func (c *Client) TerminateResourceGroupResources(ctx context.Context) error

TerminateResourceGroupResources deletes all resources from the resource group.

type CreateInstancesInput

type CreateInstancesInput struct {
	CountWorkers         int
	CountControlPlanes   int
	InstanceType         string
	StateDiskSizeGB      int
	StateDiskType        string
	Image                string
	UserAssingedIdentity string
	ConfidentialVM       bool
}

CreateInstancesInput is the input for a CreateInstances operation.

type CreateScaleSetInput

type CreateScaleSetInput struct {
	Name                           string
	NamePrefix                     string
	Count                          int
	InstanceType                   string
	StateDiskSizeGB                int32
	StateDiskType                  string
	Image                          string
	UserAssingedIdentity           string
	LoadBalancerBackendAddressPool string
	ConfidentialVM                 bool
}

CreateScaleSetInput is the input for a CreateScaleSet operation.

type NetworkSecurityGroupInput

type NetworkSecurityGroupInput struct {
	Ingress cloudtypes.Firewall
	Egress  cloudtypes.Firewall
}

NetworkSecurityGroupInput defines firewall rules to be set.

Jump to

Keyboard shortcuts

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