aci

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSubscriptionNotFound = errors.Wrapf(api.ErrNotFound, "subscription")

ErrSubscriptionNotFound is returned when a required subscription is not found

Functions

func IsSubscriptionNotFoundError added in v0.1.16

func IsSubscriptionNotFoundError(err error) bool

IsSubscriptionNotFoundError returns true if the unwrapped error is IsSubscriptionNotFoundError

Types

type ContextParams

type ContextParams struct {
	Description    string
	Location       string
	SubscriptionID string
	ResourceGroup  string
}

ContextParams options for creating ACI context

type LoginParams

type LoginParams struct {
	TenantID     string
	ClientID     string
	ClientSecret string
	CloudName    string
}

LoginParams azure login options

func (LoginParams) Validate

func (opts LoginParams) Validate() error

Validate returns an error if options are not used properly

type ResourceGroupHelper

type ResourceGroupHelper interface {
	GetSubscriptionIDs(ctx context.Context) ([]subscription.Model, error)
	ListGroups(ctx context.Context, subscriptionID string) ([]resources.Group, error)
	GetGroup(ctx context.Context, subscriptionID string, groupName string) (resources.Group, error)
	CreateOrUpdate(ctx context.Context, subscriptionID string, resourceGroupName string, parameters resources.Group) (result resources.Group, err error)
	DeleteAsync(ctx context.Context, subscriptionID string, resourceGroupName string) error
}

ResourceGroupHelper interface to manage resource groups and subscription IDs

func NewACIResourceGroupHelper

func NewACIResourceGroupHelper() ResourceGroupHelper

NewACIResourceGroupHelper create a new ResourceGroupHelper

type VolumeCreateOptions added in v0.1.15

type VolumeCreateOptions struct {
	Account string
}

VolumeCreateOptions options to create a new ACI volume

Directories

Path Synopsis
e2e

Jump to

Keyboard shortcuts

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