Documentation ¶
Index ¶
- func GetAWSAccount(ctx context.Context, cli client.Client, namespace, accountCRName string) (*awsv1alpha1.Account, error)
- func GetAWSAccountClaim(ctx context.Context, cli client.Client, namespace, accountClaimName string) (*awsv1alpha1.AccountClaim, error)
- func GetAWSAccountCredentials(ctx context.Context, cli client.Client, namespace, secretName string) (*awsprovider.AwsClientInput, error)
- func GetAccountClaimFromClusterID(ctx context.Context, cli client.Client, clusterID string) (*awsv1alpha1.AccountClaim, error)
- func NewAWSSecret(name, namespace, accessKeyID, secretAccessKey string) string
- func NewClient(flags *genericclioptions.ConfigFlags) client.Client
- type ClusterResourceFactoryOptions
- type LazyClient
- func (s *LazyClient) Create(ctx context.Context, obj runtime.Object, opts ...client.CreateOption) error
- func (s *LazyClient) Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
- func (s *LazyClient) DeleteAllOf(ctx context.Context, obj runtime.Object, opts ...client.DeleteAllOfOption) error
- func (s *LazyClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
- func (s *LazyClient) List(ctx context.Context, list runtime.Object, opts ...client.ListOption) error
- func (s *LazyClient) Patch(ctx context.Context, obj runtime.Object, patch client.Patch, ...) error
- func (s *LazyClient) Status() client.StatusWriter
- func (s *LazyClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSAccount ¶
func GetAWSAccount( ctx context.Context, cli client.Client, namespace, accountCRName string, ) (*awsv1alpha1.Account, error)
Get AWS Account CR
func GetAWSAccountClaim ¶
func GetAWSAccountClaim( ctx context.Context, cli client.Client, namespace, accountClaimName string, ) (*awsv1alpha1.AccountClaim, error)
Get AWS Account Claim CR
func GetAWSAccountCredentials ¶
func GetAWSAccountCredentials( ctx context.Context, cli client.Client, namespace, secretName string, ) (*awsprovider.AwsClientInput, error)
Get the IAM Credentials created with AWS Account CR
func GetAccountClaimFromClusterID ¶
func GetAccountClaimFromClusterID( ctx context.Context, cli client.Client, clusterID string, ) (*awsv1alpha1.AccountClaim, error)
GetAccountClaimFromClusterID returns an account based on the cluster ID
func NewAWSSecret ¶
func NewClient ¶
func NewClient(flags *genericclioptions.ConfigFlags) client.Client
Types ¶
type ClusterResourceFactoryOptions ¶
type ClusterResourceFactoryOptions struct { AccountName string AccountID string AccountNamespace string ClusterID string SupportRoleARN string Awscloudfactory awsprovider.FactoryOptions Flags *genericclioptions.ConfigFlags KubeCli client.Client }
ClusterResourceFactoryOptions defines the struct for running list account command
func (*ClusterResourceFactoryOptions) AttachCobraCliFlags ¶
func (factory *ClusterResourceFactoryOptions) AttachCobraCliFlags(cmd *cobra.Command)
AttachCobraCliFlags adds cobra cli flags to cobra command
func (*ClusterResourceFactoryOptions) GetCloudProvider ¶
func (factory *ClusterResourceFactoryOptions) GetCloudProvider(verbose bool) (awsprovider.Client, error)
GetCloudProvider placeholder
func (*ClusterResourceFactoryOptions) ValidateIdentifiers ¶
func (factory *ClusterResourceFactoryOptions) ValidateIdentifiers() (bool, error)
ValidateIdentifiers checks for presence and validity of account identifiers
type LazyClient ¶ added in v0.8.0
type LazyClient struct {
// contains filtered or unexported fields
}
func (*LazyClient) Create ¶ added in v0.8.0
func (s *LazyClient) Create(ctx context.Context, obj runtime.Object, opts ...client.CreateOption) error
func (*LazyClient) Delete ¶ added in v0.8.0
func (s *LazyClient) Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
func (*LazyClient) DeleteAllOf ¶ added in v0.8.0
func (s *LazyClient) DeleteAllOf(ctx context.Context, obj runtime.Object, opts ...client.DeleteAllOfOption) error
func (*LazyClient) List ¶ added in v0.8.0
func (s *LazyClient) List(ctx context.Context, list runtime.Object, opts ...client.ListOption) error
func (*LazyClient) Patch ¶ added in v0.8.0
func (s *LazyClient) Patch(ctx context.Context, obj runtime.Object, patch client.Patch, opts ...client.PatchOption) error
func (*LazyClient) Status ¶ added in v0.8.0
func (s *LazyClient) Status() client.StatusWriter
func (*LazyClient) Update ¶ added in v0.8.0
func (s *LazyClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.