Documentation ¶
Index ¶
- type AWSConfigFetcher
- type AzureConfigFetcher
- type AzureCredentialsWrapper
- type AzureIPClient
- type AzureImageClient
- type AzureNetworkClient
- type AzureVMClient
- type Credentials
- type Ec2Client
- type GCPConfigFetcher
- type OpsmanConfigFetcherService
- type VCenterCredentialsWrapper
- type VSphereConfigFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSConfigFetcher ¶
type AWSConfigFetcher struct {
// contains filtered or unexported fields
}
func NewAWSConfigFetcher ¶
func NewAWSConfigFetcher(state *vmmanagers.StateInfo, credentials *Credentials, client Ec2Client) *AWSConfigFetcher
func (*AWSConfigFetcher) FetchConfig ¶
func (a *AWSConfigFetcher) FetchConfig() (*vmmanagers.OpsmanConfigFilePayload, error)
type AzureConfigFetcher ¶
type AzureConfigFetcher struct {
// contains filtered or unexported fields
}
func NewAzureConfigFetcher ¶
func NewAzureConfigFetcher( state *vmmanagers.StateInfo, credentials *Credentials, vmClient AzureVMClient, networkClient AzureNetworkClient, ipClient AzureIPClient, imageClient AzureImageClient) *AzureConfigFetcher
func (*AzureConfigFetcher) FetchConfig ¶
func (a *AzureConfigFetcher) FetchConfig() (*vmmanagers.OpsmanConfigFilePayload, error)
type AzureCredentialsWrapper ¶
type AzureCredentialsWrapper struct { vmmanagers.AzureCredential CloudName string }
type AzureIPClient ¶
type AzureImageClient ¶
type AzureNetworkClient ¶
type AzureVMClient ¶
type AzureVMClient interface {
Get(ctx context.Context, resourceGroupName string, VMName string, expand compute.InstanceViewTypes) (result compute.VirtualMachine, err error)
}
type Credentials ¶
type Credentials struct { AWS *vmmanagers.AWSCredential GCP *vmmanagers.GCPCredential VSphere *VCenterCredentialsWrapper Azure *AzureCredentialsWrapper }
type Ec2Client ¶
type Ec2Client interface { DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) DescribeVolumes(input *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error) }
type GCPConfigFetcher ¶
type GCPConfigFetcher struct {
// contains filtered or unexported fields
}
func NewGCPConfigFetcher ¶
func NewGCPConfigFetcher(state *vmmanagers.StateInfo, creds *Credentials, service *compute.Service) *GCPConfigFetcher
func (*GCPConfigFetcher) FetchConfig ¶
func (g *GCPConfigFetcher) FetchConfig() (*vmmanagers.OpsmanConfigFilePayload, error)
type OpsmanConfigFetcherService ¶
type OpsmanConfigFetcherService interface {
FetchConfig() (*vmmanagers.OpsmanConfigFilePayload, error)
}
func NewOpsmanConfigFetcher ¶
func NewOpsmanConfigFetcher(state *vmmanagers.StateInfo, creds *Credentials) (OpsmanConfigFetcherService, error)
type VCenterCredentialsWrapper ¶
type VCenterCredentialsWrapper struct { vmmanagers.VcenterCredential Insecure bool }
type VSphereConfigFetcher ¶
type VSphereConfigFetcher struct {
// contains filtered or unexported fields
}
func NewVSphereConfigFetcher ¶
func NewVSphereConfigFetcher(state *vmmanagers.StateInfo, creds *Credentials, client *govmomi.Client) *VSphereConfigFetcher
func (*VSphereConfigFetcher) FetchConfig ¶
func (v *VSphereConfigFetcher) FetchConfig() (*vmmanagers.OpsmanConfigFilePayload, error)
Click to show internal directories.
Click to hide internal directories.