Documentation ¶
Index ¶
- Constants
- func IsAlreadyTerminated(err error) bool
- func IsDeleteInProgress(err error) bool
- func IsEmptyAmazonAccountID(err error) bool
- func IsInvalidConfig(err error) bool
- func IsMalformedAmazonAccountID(err error) bool
- func IsNotExists(err error) bool
- func IsNotFound(err error) bool
- func IsTooFewResults(err error) bool
- func IsTooManyResults(err error) bool
- func IsUpdateInProgress(err error) bool
- func IsWrongAmazonAccountIDLength(err error) bool
- func IsWrongType(err error) bool
- type APIWhitelist
- type Config
- type Resource
- type Whitelist
Constants ¶
const (
// Name is the identifier of the resource.
Name = "tccp"
)
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyTerminated ¶
IsAlreadyTerminated asserts alreadyTerminatedError. Here we also check for the AWS error code IncorrectInstanceState. The AWS errors might look like the following example.
IncorrectInstanceState: The instance 'i-0b26c88f3546aefee' must be in a 'running', 'pending', 'stopping' or 'stopped' state for this operation.
func IsDeleteInProgress ¶
IsDeleteInProgress asserts deleteInProgressError.
func IsEmptyAmazonAccountID ¶
IsEmptyAmazonAccountID asserts emptyAmazonAccountIDError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsMalformedAmazonAccountID ¶
IsMalformedAmazonAccountID asserts malformedAmazonAccountIDError.
func IsTooFewResults ¶
IsTooFewResults asserts tooFewResultsError.
func IsTooManyResults ¶
IsTooManyResults asserts tooManyResultsError.
func IsUpdateInProgress ¶
IsUpdateInProgress asserts updateInProgressError.
func IsWrongAmazonAccountIDLength ¶
IsWrongAmazonAccountIDLength asserts wrongAmazonAccountIDLengthError.
Types ¶
type APIWhitelist ¶
APIWhitelist defines guest cluster k8s public/private api whitelisting.
type Config ¶
type Config struct { // EncrypterRoleManager manages role encryption. This can be supported by // different implementations and thus is optional. EncrypterRoleManager encrypter.RoleManager G8sClient versioned.Interface Logger micrologger.Logger APIWhitelist APIWhitelist CIDRBlockAWSCNI string Detection *changedetection.TCCP InstallationName string InstanceMonitoring bool PublicRouteTables string Route53Enabled bool }
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.