Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceManagedMySQL = ResourceType("Microsoft.DBforMySQL/servers") ResourceVirtualMachine = ResourceType("Microsoft.Compute/virtualMachines") )
View Source
const (
PollerInterval = time.Second * 10
)
Variables ¶
View Source
var (
ErrUnsupportedType = errors.New("unsupported type specified")
)
Functions ¶
Types ¶
type Interface ¶
type Interface interface { List(ctx context.Context, resourceType ResourceType, resourceGroup string) ([]*Resource, error) Shutdown(ctx context.Context, resource *Resource, wait bool) error Startup(ctx context.Context, resource *Resource, wait bool) error }
func NewForConfig ¶
func NewForDefaultAuth ¶
func NewForMsiAuth ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func (Resource) GetResourceGroup ¶
func (Resource) GetType ¶
func (r Resource) GetType() ResourceType
type ResourceType ¶
type ResourceType string
func From ¶
func From(api apis.AzureResourceType) (ResourceType, error)
Click to show internal directories.
Click to hide internal directories.