aci

package
v0.1.18-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 37 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSubscriptionNotFound = errors.Wrapf(errdefs.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
}

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
	Fileshare string
}

VolumeCreateOptions options to create a new ACI volume

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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