Documentation
¶
Index ¶
- type DefaultProvider
- func (p *DefaultProvider) Get(ctx context.Context, id string) (*Zone, error)
- func (p *DefaultProvider) GetByName(ctx context.Context, name string) (*Zone, error)
- func (p *DefaultProvider) List(ctx context.Context) ([]*Zone, error)
- func (p *DefaultProvider) ValidateZone(ctx context.Context, zoneIdentifier string) error
- type Provider
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProvider ¶
type DefaultProvider struct {
// contains filtered or unexported fields
}
DefaultProvider implements the Zone Provider
func NewDefaultProvider ¶
func NewDefaultProvider(csClient csapi.CloudStackAPI, cache *cache.Cache) *DefaultProvider
NewDefaultProvider creates a new zone provider
func (*DefaultProvider) List ¶
func (p *DefaultProvider) List(ctx context.Context) ([]*Zone, error)
List returns all available zones
func (*DefaultProvider) ValidateZone ¶
func (p *DefaultProvider) ValidateZone(ctx context.Context, zoneIdentifier string) error
ValidateZone validates that a zone exists and is available
Click to show internal directories.
Click to hide internal directories.