clientfactory

package
v0.0.0-...-f062a39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSEC2Client

type AWSEC2Client struct {
	// contains filtered or unexported fields
}

func (AWSEC2Client) DescribeImages

func (client AWSEC2Client) DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)

func (AWSEC2Client) DescribeInstances

func (client AWSEC2Client) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

func (AWSEC2Client) DescribeSecurityGroups

func (client AWSEC2Client) DescribeSecurityGroups(input *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)

func (AWSEC2Client) DescribeSnapshots

func (client AWSEC2Client) DescribeSnapshots(input *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error)

func (AWSEC2Client) DescribeVolumes

func (client AWSEC2Client) DescribeVolumes(input *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error)

type AWSIAMClient

type AWSIAMClient struct {
	// contains filtered or unexported fields
}

func (AWSIAMClient) ListAccessKeys

func (client AWSIAMClient) ListAccessKeys(input *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error)

type AWSKmsClient

type AWSKmsClient struct {
	// contains filtered or unexported fields
}

func (AWSKmsClient) ListAliases

func (client AWSKmsClient) ListAliases(input *kms.ListAliasesInput) (*kms.ListAliasesOutput, error)

func (AWSKmsClient) ListKeys

func (client AWSKmsClient) ListKeys(input *kms.ListKeysInput) (*kms.ListKeysOutput, error)

type AWSS3Client

type AWSS3Client struct {
	// contains filtered or unexported fields
}

func (AWSS3Client) GetBucketAcl

func (client AWSS3Client) GetBucketAcl(input *s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)

func (AWSS3Client) GetBucketEncryption

func (client AWSS3Client) GetBucketEncryption(input *s3.GetBucketEncryptionInput) (*s3.GetBucketEncryptionOutput, error)

func (AWSS3Client) GetBucketLocation

func (client AWSS3Client) GetBucketLocation(input *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)

func (AWSS3Client) GetBucketLogging

func (client AWSS3Client) GetBucketLogging(input *s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error)

func (AWSS3Client) GetBucketPolicy

func (client AWSS3Client) GetBucketPolicy(input *s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error)

func (AWSS3Client) ListBuckets

func (client AWSS3Client) ListBuckets(input *s3.ListBucketsInput) (*s3.ListBucketsOutput, error)

type ClientFactory

type ClientFactory interface {
	GetKmsClient(config csasession.SessionConfig) (KmsClient, error)
	GetEc2Client(config csasession.SessionConfig) (EC2Client, error)
	GetS3Client(config csasession.SessionConfig) (S3Client, error)
	GetIAMClient(config csasession.SessionConfig) (IAMClient, error)
}

func New

func New(sessionFactory *sessionfactory.SessionFactory) ClientFactory

New creates a new instance of the ClientFactory.

type ClientFactoryAWS

type ClientFactoryAWS struct {
	// contains filtered or unexported fields
}

ClientFactory provides methods for creation and management of service clients.

func (*ClientFactoryAWS) GetEc2Client

func (factory *ClientFactoryAWS) GetEc2Client(config csasession.SessionConfig) (EC2Client, error)

GetEc2Client creates a new EC2 client from cached session.

func (*ClientFactoryAWS) GetIAMClient

func (factory *ClientFactoryAWS) GetIAMClient(config csasession.SessionConfig) (IAMClient, error)

GetIAMClient creates a new IAM client from cached session.

func (*ClientFactoryAWS) GetKmsClient

func (factory *ClientFactoryAWS) GetKmsClient(config csasession.SessionConfig) (KmsClient, error)

GetKmsClient creates a new KMS client from cached session.

func (*ClientFactoryAWS) GetS3Client

func (factory *ClientFactoryAWS) GetS3Client(config csasession.SessionConfig) (S3Client, error)

GetS3Client creates a new S3 client from cached session.

type EC2Client

type EC2Client interface {
	DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
	DescribeVolumes(input *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error)
	DescribeSecurityGroups(input *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)
	DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)
	DescribeSnapshots(input *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error)
}

type IAMClient

type IAMClient interface {
	ListUsers(input *iam.GetAccountAuthorizationDetailsInput) (*iam.GetAccountAuthorizationDetailsOutput, error)
	ListAccessKeys(input *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error)
}

type KmsClient

type KmsClient interface {
	ListKeys(input *kms.ListKeysInput) (*kms.ListKeysOutput, error)
	ListAliases(input *kms.ListAliasesInput) (*kms.ListAliasesOutput, error)
}

type S3Client

type S3Client interface {
	GetBucketPolicy(input *s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error)
	GetBucketEncryption(input *s3.GetBucketEncryptionInput) (*s3.GetBucketEncryptionOutput, error)
	GetBucketLogging(input *s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error)
	GetBucketAcl(input *s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)
	ListBuckets(input *s3.ListBucketsInput) (*s3.ListBucketsOutput, error)
	GetBucketLocation(input *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL