aci

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VolumeID added in v0.1.15

func VolumeID(storageAccount string, fileShareName string) string

VolumeID generate volume ID from azure storage accoun & fileshare

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