Documentation ¶
Index ¶
- type EnvironAPI
- type EnvironProvider
- func (e EnvironProvider) CloudSchema() *jsonschema.Schema
- func (e EnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema
- func (e EnvironProvider) DetectCredentials() (*cloud.CloudCredential, error)
- func (e EnvironProvider) FinalizeCredential(cfx environs.FinalizeCredentialContext, ...) (*cloud.Credential, error)
- func (e *EnvironProvider) Open(params environs.OpenParams) (environs.Environ, error)
- func (e *EnvironProvider) Ping(ctx context.ProviderCallContext, endpoint string) error
- func (e EnvironProvider) PrepareConfig(args environs.PrepareConfigParams) (*config.Config, error)
- func (e EnvironProvider) Validate(cfg, old *config.Config) (valid *config.Config, err error)
- func (EnvironProvider) Version() int
- type OracleEnviron
- func (e *OracleEnviron) AdoptResources(ctx context.ProviderCallContext, controllerUUID string, ...) error
- func (o *OracleEnviron) AllInstances(ctx context.ProviderCallContext) ([]envinstance.Instance, error)
- func (o *OracleEnviron) AvailabilityZones(ctx context.ProviderCallContext) ([]common.AvailabilityZone, error)
- func (o *OracleEnviron) Bootstrap(ctx environs.BootstrapContext, callCtx context.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (o *OracleEnviron) Config() *config.Config
- func (o *OracleEnviron) ConstraintsValidator(ctx context.ProviderCallContext) (constraints.Validator, error)
- func (o *OracleEnviron) ControllerInstances(ctx context.ProviderCallContext, controllerUUID string) ([]instance.Id, error)
- func (o *OracleEnviron) Create(ctx context.ProviderCallContext, params environs.CreateParams) error
- func (o *OracleEnviron) DeleteMachineVnicSet(machineId string) error
- func (o *OracleEnviron) Destroy(ctx context.ProviderCallContext) error
- func (o *OracleEnviron) DestroyController(ctx context.ProviderCallContext, controllerUUID string) error
- func (o *OracleEnviron) Details(id instance.Id) (ociResponse.Instance, error)
- func (o *OracleEnviron) InstanceAvailabilityZoneNames(ctx context.ProviderCallContext, ids []instance.Id) ([]string, error)
- func (o *OracleEnviron) InstanceTypes(context.ProviderCallContext, constraints.Value) (envinstance.InstanceTypesWithCostMetadata, error)
- func (o *OracleEnviron) Instances(ctx context.ProviderCallContext, ids []instance.Id) ([]envinstance.Instance, error)
- func (o *OracleEnviron) MaintainInstance(ctx context.ProviderCallContext, args environs.StartInstanceParams) error
- func (o *OracleEnviron) PrecheckInstance(context.ProviderCallContext, environs.PrecheckInstanceParams) error
- func (o *OracleEnviron) PrepareForBootstrap(ctx environs.BootstrapContext) error
- func (o *OracleEnviron) Provider() environs.EnvironProvider
- func (o *OracleEnviron) SetConfig(cfg *config.Config) error
- func (o *OracleEnviron) StartInstance(ctx context.ProviderCallContext, args environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (o *OracleEnviron) StopInstances(ctx context.ProviderCallContext, ids ...instance.Id) error
- func (o *OracleEnviron) StorageProvider(t storage.ProviderType) (storage.Provider, error)
- func (o *OracleEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type OracleRenderer
- type StorageAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironAPI ¶
type EnvironAPI interface { commonProvider.Instancer commonProvider.InstanceAPI commonProvider.Authenticater commonProvider.Shaper commonProvider.Imager commonProvider.IpReservationAPI commonProvider.IpAssociationAPI commonProvider.IpNetworkExchanger commonProvider.IpNetworker commonProvider.VnicSetAPI commonProvider.RulesAPI commonProvider.AclAPI commonProvider.SecIpAPI commonProvider.IpAddressPrefixSetAPI commonProvider.SecListAPI commonProvider.ApplicationsAPI commonProvider.SecRulesAPI commonProvider.AssociationAPI StorageAPI }
EnvironAPI provides interface to access and make operation inside a oracle environ
type EnvironProvider ¶
type EnvironProvider struct{}
EnvironProvider type implements environs.EnvironProvider interface
func (EnvironProvider) CloudSchema ¶
func (e EnvironProvider) CloudSchema() *jsonschema.Schema
CloudSchema is defined on the environs.EnvironProvider interface.
func (EnvironProvider) CredentialSchemas ¶
func (e EnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema
CredentialSchemas is defined on the environs.ProviderCredentials interface.
func (EnvironProvider) DetectCredentials ¶
func (e EnvironProvider) DetectCredentials() (*cloud.CloudCredential, error)
DetectCredentials is defined on the environs.ProviderCredentials interface.
func (EnvironProvider) FinalizeCredential ¶
func (e EnvironProvider) FinalizeCredential( cfx environs.FinalizeCredentialContext, params environs.FinalizeCredentialParams, ) (*cloud.Credential, error)
FinalizeCredential is defined on the environs.ProviderCredentials interface.
func (*EnvironProvider) Open ¶
func (e *EnvironProvider) Open(params environs.OpenParams) (environs.Environ, error)
Open is defined on the environs.EnvironProvider interface.
func (*EnvironProvider) Ping ¶
func (e *EnvironProvider) Ping(ctx context.ProviderCallContext, endpoint string) error
Ping implements environs.EnvironProvider.
func (EnvironProvider) PrepareConfig ¶
func (e EnvironProvider) PrepareConfig(args environs.PrepareConfigParams) (*config.Config, error)
PrepareConfig is defined on the environs.EnvironProvider interface.
func (EnvironProvider) Version ¶
func (EnvironProvider) Version() int
Version is part of the EnvironProvider interface.
type OracleEnviron ¶
type OracleEnviron struct { environs.Networking oraclenet.Firewaller // contains filtered or unexported fields }
OracleEnviron implements the environs.Environ interface
func NewOracleEnviron ¶
func NewOracleEnviron(p *EnvironProvider, args environs.OpenParams, client EnvironAPI, c clock.Clock) (env *OracleEnviron, err error)
NewOracleEnviron returns a new OracleEnviron
func (*OracleEnviron) AdoptResources ¶
func (e *OracleEnviron) AdoptResources(ctx context.ProviderCallContext, controllerUUID string, fromVersion version.Number) error
AdoptResources is part of the Environ interface.
func (*OracleEnviron) AllInstances ¶
func (o *OracleEnviron) AllInstances(ctx context.ProviderCallContext) ([]envinstance.Instance, error)
AllInstances is part of the InstanceBroker interface.
func (*OracleEnviron) AvailabilityZones ¶
func (o *OracleEnviron) AvailabilityZones(ctx context.ProviderCallContext) ([]common.AvailabilityZone, error)
AvailabilityZones is defined in the common.ZonedEnviron interface
func (*OracleEnviron) Bootstrap ¶
func (o *OracleEnviron) Bootstrap(ctx environs.BootstrapContext, callCtx context.ProviderCallContext, args environs.BootstrapParams) (*environs.BootstrapResult, error)
Bootstrap is part of the Environ interface.
func (*OracleEnviron) Config ¶
func (o *OracleEnviron) Config() *config.Config
Config is part of the Environ interface.
func (*OracleEnviron) ConstraintsValidator ¶
func (o *OracleEnviron) ConstraintsValidator(ctx context.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator is part of the environs.Environ interface.
func (*OracleEnviron) ControllerInstances ¶
func (o *OracleEnviron) ControllerInstances(ctx context.ProviderCallContext, controllerUUID string) ([]instance.Id, error)
ControllerInstances is part of the environs.Environ interface.
func (*OracleEnviron) Create ¶
func (o *OracleEnviron) Create(ctx context.ProviderCallContext, params environs.CreateParams) error
Create is part of the Environ interface.
func (*OracleEnviron) DeleteMachineVnicSet ¶
func (o *OracleEnviron) DeleteMachineVnicSet(machineId string) error
DeleteMachineVnicSet will delete the machine vNIC set and any ACLs bound to it.
func (*OracleEnviron) Destroy ¶
func (o *OracleEnviron) Destroy(ctx context.ProviderCallContext) error
Destroy is part of the environs.Environ interface.
func (*OracleEnviron) DestroyController ¶
func (o *OracleEnviron) DestroyController(ctx context.ProviderCallContext, controllerUUID string) error
DestroyController is part of the environs.Environ interface.
func (*OracleEnviron) Details ¶
func (o *OracleEnviron) Details(id instance.Id) (ociResponse.Instance, error)
func (*OracleEnviron) InstanceAvailabilityZoneNames ¶
func (o *OracleEnviron) InstanceAvailabilityZoneNames(ctx context.ProviderCallContext, ids []instance.Id) ([]string, error)
InstanceAvailabilityzoneNames is defined in the common.ZonedEnviron interface
func (*OracleEnviron) InstanceTypes ¶
func (o *OracleEnviron) InstanceTypes(context.ProviderCallContext, constraints.Value) (envinstance.InstanceTypesWithCostMetadata, error)
InstanceTypes is part of the environs.InstanceTypesFetcher interface.
func (*OracleEnviron) Instances ¶
func (o *OracleEnviron) Instances(ctx context.ProviderCallContext, ids []instance.Id) ([]envinstance.Instance, error)
Instances is part of the environs.Environ interface.
func (*OracleEnviron) MaintainInstance ¶
func (o *OracleEnviron) MaintainInstance(ctx context.ProviderCallContext, args environs.StartInstanceParams) error
MaintainInstance is part of the InstanceBroker interface.
func (*OracleEnviron) PrecheckInstance ¶
func (o *OracleEnviron) PrecheckInstance(context.ProviderCallContext, environs.PrecheckInstanceParams) error
PrecheckInstance is part of the environs.Environ interface.
func (*OracleEnviron) PrepareForBootstrap ¶
func (o *OracleEnviron) PrepareForBootstrap(ctx environs.BootstrapContext) error
PrepareForBootstrap is part of the Environ interface.
func (*OracleEnviron) Provider ¶
func (o *OracleEnviron) Provider() environs.EnvironProvider
Provider is part of the environs.Environ interface.
func (*OracleEnviron) SetConfig ¶
func (o *OracleEnviron) SetConfig(cfg *config.Config) error
SetConfig is part of the environs.Environ interface.
func (*OracleEnviron) StartInstance ¶
func (o *OracleEnviron) StartInstance(ctx context.ProviderCallContext, args environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance is part of the InstanceBroker interface.
func (*OracleEnviron) StopInstances ¶
func (o *OracleEnviron) StopInstances(ctx context.ProviderCallContext, ids ...instance.Id) error
StopInstances is part of the InstanceBroker interface.
func (*OracleEnviron) StorageProvider ¶
func (o *OracleEnviron) StorageProvider(t storage.ProviderType) (storage.Provider, error)
StorageProvider implements storage.ProviderRegistry.
func (*OracleEnviron) StorageProviderTypes ¶
func (o *OracleEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
StorageProviderTypes implements storage.ProviderRegistry.
type OracleRenderer ¶
type OracleRenderer struct{}
OracleRenderer implements the renderers.ProviderRenderer interface
func (OracleRenderer) Render ¶
func (OracleRenderer) Render(cfg cloudinit.CloudConfig, os jujuos.OSType) ([]byte, error)
Renderer is defined in the renderers.ProviderRenderer interface
type StorageAPI ¶
type StorageAPI interface { common.StorageVolumeAPI common.StorageAttachmentAPI common.Composer }
StorageAPI defines the storage API in the oracle cloud provider this enables the provider to talk with the storage API and make storage specific operations