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
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 ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.