Documentation ¶
Index ¶
- Constants
- func IsAlreadyExists(err error) bool
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- func IsStackNotFound(err error) bool
- func IsWrongType(err error) bool
- type AWSConfig
- type Config
- 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{}) (*framework.Patch, error)
- func (r *Resource) NewUpdatePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*framework.Patch, error)
- type StackState
Constants ¶
View Source
const (
// Name is the identifier of the resource.
Name = "cloudformationv4"
)
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
IsAlreadyExists asserts alreadyExistsError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsStackNotFound ¶
IsStackNotFound asserts stack not found error from upstream's API message
FIXME: The validation error returned by the CloudFormation API doesn't make things easy to check, other than looking for the returned string. There's no constant in aws go sdk for defining this string, it comes from the service.
Types ¶
type Config ¶
type Config struct { // Dependencies. Clients *adapter.Clients HostClients *adapter.Clients InstallationName string Logger micrologger.Logger }
Config represents the configuration used to create a new cloudformation resource.
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 ¶
type StackState ¶
type StackState struct { Name string MasterImageID string MasterInstanceType string MasterCloudConfigVersion string WorkerCount string WorkerImageID string WorkerInstanceType string WorkerCloudConfigVersion string }
StackState is the state representation on which the resource methods work.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.