Documentation
¶
Index ¶
- Constants
- Variables
- func CreateDelegationSet(ctx context.Context, zoneId *string, r53 Route53API) (*types.DelegationSet, error)
- func CreateHostedZone(ctx context.Context, domain string, r53 Route53API) (*types.HostedZone, error)deprecated
- func DeleteDelegationSet(ctx context.Context, delegationSetId *string, r53 Route53API) error
- func GetAccountID(arn string) string
- func GetDelegationSetByZone(ctx context.Context, zoneId *string, r53 Route53API) (*types.DelegationSet, error)
- func GetHostedZoneTags(ctx context.Context, zoneId string, r53 Route53API) (map[string]string, error)
- func GetHostedZonesByName(ctx context.Context, domain string, r53 Route53API) ([]*types.HostedZone, error)
- func IsParameterNotFoundError(err error) booldeprecated
- func IsS3NoSuchKeyError(err error) booldeprecated
- func ListHostedZonesByDelegationSet(ctx context.Context, delegationSetId *string, r53 Route53API) ([]types.HostedZone, error)
- func ListResourceRecords(ctx context.Context, zoneId, recordName string, recordType types.RRType, ...) ([]string, error)
- func ListReusableDelegationSets(ctx context.Context, r53 Route53API) ([]types.DelegationSet, error)
- func LoadDefaultConfig(ctx context.Context, region Region) (aws.Config, error)
- func PutSecretManagerSecret(ctx context.Context, name, value string, svc SecretManagerAPI) (string, error)
- type Aws
- func (a *Aws) CheckImageExistOnPublicECR(ctx context.Context, repo, tag string) (bool, error)
- func (a *Aws) DeleteSecrets(ctx context.Context, names ...string) error
- func (a *Aws) IsValidSecret(ctx context.Context, name string) (bool, error)
- func (a *Aws) ListSecrets(ctx context.Context) ([]string, error)
- func (a *Aws) ListSecretsByPrefix(ctx context.Context, prefix string) ([]string, error)
- func (a *Aws) LoadConfig(ctx context.Context) (aws.Config, error)
- func (a *Aws) PutSecret(ctx context.Context, name, value string) error
- func (a *Aws) RevokeDefaultSecurityGroupRules(ctx context.Context, sgId string) error
- type ErrNoSuchKey
- type ErrParameterNotFound
- type MockStsClientAPI
- type PublicECRAPI
- type Region
- type Route53API
- type SecretManagerAPI
- type SsmParametersAPI
- type StsClientAPI
Constants ¶
View Source
const CreateHostedZoneCommentLegacy = "Created by defang cli"
Variables ¶
View Source
var ( ErrZoneNotFound = errors.New("the Route53 hosted zone was not found") ErrNoRecordFound = errors.New("no Route53 record found in the hosted zone") ErrNoDelegationSetFound = errors.New("no Route53 delegation set found") )
View Source
var NewSsmFromConfig = func(cfg aws.Config) SsmParametersAPI { return ssm.NewFromConfig(cfg) }
View Source
var NewStsFromConfig = func(cfg aws.Config) StsClientAPI { return sts.NewFromConfig(cfg) }
Functions ¶
func CreateDelegationSet ¶
func CreateDelegationSet(ctx context.Context, zoneId *string, r53 Route53API) (*types.DelegationSet, error)
func CreateHostedZone
deprecated
func CreateHostedZone(ctx context.Context, domain string, r53 Route53API) (*types.HostedZone, error)
Deprecated: let Pulumi create the hosted zone
func DeleteDelegationSet ¶
func DeleteDelegationSet(ctx context.Context, delegationSetId *string, r53 Route53API) error
func GetAccountID ¶
func GetDelegationSetByZone ¶
func GetDelegationSetByZone(ctx context.Context, zoneId *string, r53 Route53API) (*types.DelegationSet, error)
func GetHostedZoneTags ¶
func GetHostedZonesByName ¶
func GetHostedZonesByName(ctx context.Context, domain string, r53 Route53API) ([]*types.HostedZone, error)
func IsParameterNotFoundError
deprecated
func IsS3NoSuchKeyError
deprecated
func ListHostedZonesByDelegationSet ¶
func ListHostedZonesByDelegationSet(ctx context.Context, delegationSetId *string, r53 Route53API) ([]types.HostedZone, error)
func ListResourceRecords ¶
func ListReusableDelegationSets ¶
func ListReusableDelegationSets(ctx context.Context, r53 Route53API) ([]types.DelegationSet, error)
func LoadDefaultConfig ¶
func PutSecretManagerSecret ¶
Types ¶
type Aws ¶
func (*Aws) CheckImageExistOnPublicECR ¶
func (*Aws) IsValidSecret ¶
func (*Aws) ListSecretsByPrefix ¶
type ErrNoSuchKey ¶
type ErrParameterNotFound ¶
type ErrParameterNotFound = types.ParameterNotFound
type MockStsClientAPI ¶
type MockStsClientAPI struct{}
func (MockStsClientAPI) AssumeRole ¶
func (MockStsClientAPI) AssumeRole(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)
func (MockStsClientAPI) GetCallerIdentity ¶
func (MockStsClientAPI) GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
type PublicECRAPI ¶
type PublicECRAPI interface {
GetAuthorizationToken(ctx context.Context, params *ecrpublic.GetAuthorizationTokenInput, optFns ...func(*ecrpublic.Options)) (*ecrpublic.GetAuthorizationTokenOutput, error)
}
type Route53API ¶
type Route53API interface {
CreateHostedZone(ctx context.Context, params *route53.CreateHostedZoneInput, optFns ...func(*route53.Options)) (*route53.CreateHostedZoneOutput, error)
CreateReusableDelegationSet(ctx context.Context, params *route53.CreateReusableDelegationSetInput, optFns ...func(*route53.Options)) (*route53.CreateReusableDelegationSetOutput, error)
DeleteReusableDelegationSet(ctx context.Context, params *route53.DeleteReusableDelegationSetInput, optFns ...func(*route53.Options)) (*route53.DeleteReusableDelegationSetOutput, error)
GetHostedZone(ctx context.Context, params *route53.GetHostedZoneInput, optFns ...func(*route53.Options)) (*route53.GetHostedZoneOutput, error)
ListReusableDelegationSets(ctx context.Context, params *route53.ListReusableDelegationSetsInput, optFns ...func(*route53.Options)) (*route53.ListReusableDelegationSetsOutput, error)
ListHostedZones(ctx context.Context, params *route53.ListHostedZonesInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesOutput, error)
ListHostedZonesByName(ctx context.Context, params *route53.ListHostedZonesByNameInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesByNameOutput, error)
ListResourceRecordSets(ctx context.Context, params *route53.ListResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ListResourceRecordSetsOutput, error)
ListTagsForResource(ctx context.Context, params *route53.ListTagsForResourceInput, optFns ...func(*route53.Options)) (*route53.ListTagsForResourceOutput, error)
}
type SecretManagerAPI ¶
type SecretManagerAPI interface {
CreateSecret(ctx context.Context, params *secretsmanager.CreateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.CreateSecretOutput, error)
UpdateSecret(ctx context.Context, params *secretsmanager.UpdateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.UpdateSecretOutput, error)
RestoreSecret(ctx context.Context, params *secretsmanager.RestoreSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.RestoreSecretOutput, error)
}
type SsmParametersAPI ¶
type SsmParametersAPI interface {
DescribeParameters(ctx context.Context, params *ssm.DescribeParametersInput, optFns ...func(*ssm.Options)) (*ssm.DescribeParametersOutput, error)
PutParameter(ctx context.Context, params *ssm.PutParameterInput, optFns ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
DeleteParameters(ctx context.Context, params *ssm.DeleteParametersInput, optFns ...func(*ssm.Options)) (*ssm.DeleteParametersOutput, error)
GetParameters(ctx context.Context, params *ssm.GetParametersInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersOutput, error)
GetParametersByPath(ctx context.Context, params *ssm.GetParametersByPathInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
}
type StsClientAPI ¶
type StsClientAPI interface {
GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
AssumeRole(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.