Documentation ¶
Index ¶
- Constants
- func IsBucketNotFound(err error) bool
- func IsInvalidConfig(err error) bool
- func IsKeyNotFound(err error) bool
- func IsObjectNotFound(err error) bool
- func IsWrongType(err error) bool
- type BucketObjectState
- type CloudConfigMock
- type Config
- type KMSClientMock
- type Resource
- func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error
- func (r *Resource) ApplyDeleteChange(ctx context.Context, obj, deleteChange interface{}) error
- func (r *Resource) ApplyUpdateChange(ctx context.Context, obj, updateChange interface{}) error
- func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) Name() string
- func (r *Resource) NewDeletePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
- func (r *Resource) NewUpdatePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
- type S3ClientMock
- func (s *S3ClientMock) DeleteObject(*s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
- func (s *S3ClientMock) GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
- func (s *S3ClientMock) ListObjectsV2(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
- func (s *S3ClientMock) PutObject(*s3.PutObjectInput) (*s3.PutObjectOutput, error)
Constants ¶
View Source
const (
// Name is the identifier of the resource.
Name = "s3objectv23"
)
Variables ¶
This section is empty.
Functions ¶
func IsBucketNotFound ¶
IsBucketNotFound asserts object not found error from upstream's API message.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsKeyNotFound ¶
IsKeyNotFound asserts key not found error from upstream's API message.
func IsObjectNotFound ¶
IsObjectNotFound asserts object not found error from upstream's API message.
Types ¶
type BucketObjectState ¶
type CloudConfigMock ¶
type CloudConfigMock struct {
// contains filtered or unexported fields
}
func (*CloudConfigMock) NewMasterTemplate ¶
type Config ¶
type Config struct { CertsSearcher certs.Interface CloudConfig cloudconfig.Interface Logger micrologger.Logger RandomKeysSearcher randomkeys.Interface }
Config represents the configuration used to create a new cloudformation resource.
type KMSClientMock ¶
func (*KMSClientMock) Encrypt ¶
func (k *KMSClientMock) Encrypt(input *kms.EncryptInput) (*kms.EncryptOutput, error)
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource implements the cloudformation resource.
func (*Resource) ApplyCreateChange ¶
func (*Resource) ApplyDeleteChange ¶
func (*Resource) ApplyUpdateChange ¶
func (*Resource) GetCurrentState ¶
func (*Resource) GetDesiredState ¶
func (*Resource) NewDeletePatch ¶
func (*Resource) NewUpdatePatch ¶
type S3ClientMock ¶
func (*S3ClientMock) DeleteObject ¶
func (s *S3ClientMock) DeleteObject(*s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
func (*S3ClientMock) GetObject ¶
func (s *S3ClientMock) GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
func (*S3ClientMock) ListObjectsV2 ¶
func (s *S3ClientMock) ListObjectsV2(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
func (*S3ClientMock) PutObject ¶
func (s *S3ClientMock) PutObject(*s3.PutObjectInput) (*s3.PutObjectOutput, error)
Click to show internal directories.
Click to hide internal directories.