Documentation ¶
Index ¶
- func NewCloudfrontClient(session aws.Session, arn string, target runtime.Object) *cloudfront.CloudFront
- func NewIAMClient(session aws.Session, arn string, target runtime.Object) *iam.IAM
- func NewS3Client(session aws.Session, arn string, target runtime.Object) *s3.S3
- type AWSClients
- type CloudfrontScope
- type ClusterScope
- func (s *ClusterScope) ARN() string
- func (s *ClusterScope) AccountID() string
- func (s *ClusterScope) BucketName() string
- func (s *ClusterScope) Cluster() runtime.Object
- func (s *ClusterScope) ClusterName() string
- func (s *ClusterScope) ClusterNamespace() string
- func (s *ClusterScope) ConfigName() string
- func (s *ClusterScope) Installation() string
- func (s *ClusterScope) Region() string
- func (s *ClusterScope) Release() *semver.Version
- func (s *ClusterScope) ReleaseVersion() string
- func (s *ClusterScope) SecretName() string
- func (s *ClusterScope) Session() awsclient.ConfigProvider
- type ClusterScopeParams
- type IAMScope
- type S3Scope
- type ServiceEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudfrontClient ¶ added in v0.6.0
func NewCloudfrontClient(session aws.Session, arn string, target runtime.Object) *cloudfront.CloudFront
NewCloudfrontClient creates a new Cloudfront API client for a given session
func NewIAMClient ¶
NewIAMClient creates a new IAM API client for a given session
Types ¶
type AWSClients ¶
type AWSClients struct { S3 *s3.S3 IAM *iam.IAM Cloudfront *cloudfront.CloudFront }
AWSClients contains all the aws clients used by the scopes
type CloudfrontScope ¶ added in v0.6.0
type CloudfrontScope interface { aws.ClusterScoper }
CloudfrontScope is a scope for use with the Cloudfront reconciling service in cluster
type ClusterScope ¶
ClusterScope defines the basic context for an actuator to operate upon.
func NewClusterScope ¶
func NewClusterScope(params ClusterScopeParams) (*ClusterScope, error)
NewClusterScope creates a new Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*ClusterScope) ARN ¶
func (s *ClusterScope) ARN() string
ARN returns the AWS SDK assumed role.
func (*ClusterScope) AccountID ¶
func (s *ClusterScope) AccountID() string
AccountID returns the account ID of the assumed role.
func (*ClusterScope) BucketName ¶
func (s *ClusterScope) BucketName() string
BucketName returns the name of the OIDC S3 bucket.
func (*ClusterScope) Cluster ¶
func (s *ClusterScope) Cluster() runtime.Object
Cluster returns the AWS infrastructure cluster object.
func (*ClusterScope) ClusterName ¶
func (s *ClusterScope) ClusterName() string
ClusterName returns the name of AWS infrastructure cluster object.
func (*ClusterScope) ClusterNamespace ¶
func (s *ClusterScope) ClusterNamespace() string
ClusterNameSpace returns the namespace of AWS infrastructure cluster object.
func (*ClusterScope) ConfigName ¶ added in v0.6.0
func (s *ClusterScope) ConfigName() string
ConfigName returns the name of Cloudfront config from the cluster.
func (*ClusterScope) Installation ¶ added in v0.3.0
func (s *ClusterScope) Installation() string
Installation returns the name of the installation where the cluster object is located.
func (*ClusterScope) Region ¶
func (s *ClusterScope) Region() string
Region returns the region of the AWS infrastructure cluster object.
func (*ClusterScope) Release ¶ added in v0.6.0
func (s *ClusterScope) Release() *semver.Version
Release returns the semver version of the AWS cluster object.
func (*ClusterScope) ReleaseVersion ¶ added in v0.6.0
func (s *ClusterScope) ReleaseVersion() string
ReleaseVersion returns the release version of the AWS cluster object.
func (*ClusterScope) SecretName ¶
func (s *ClusterScope) SecretName() string
SecretName returns the name of the OIDC secret from the cluster.
func (*ClusterScope) Session ¶
func (s *ClusterScope) Session() awsclient.ConfigProvider
Session returns the AWS SDK session.
type ClusterScopeParams ¶
type ClusterScopeParams struct { AccountID string ARN string BucketName string Cluster runtime.Object ClusterName string ClusterNamespace string ConfigName string Installation string Region string ReleaseVersion string SecretName string Logger logr.Logger Session awsclient.ConfigProvider }
ClusterScopeParams defines the input parameters used to create a new Scope.
type IAMScope ¶
type IAMScope interface { aws.ClusterScoper }
IAMScope is a scope for use with the IAM reconciling service in cluster
type S3Scope ¶
type S3Scope interface { aws.ClusterScoper }
S3Scope is a scope for use with the S3 reconciling service in cluster
type ServiceEndpoint ¶
ServiceEndpoint defines a tuple containing AWS Service resolution information