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, optFns ...func(*config.LoadOptions) error) (aws.Config, error)
- func MakeARN(partition, service, region, accountId, resourceId string) string
- func PutSecretManagerSecret(ctx context.Context, name, value string, svc SecretManagerAPI) (string, error)
- func RetrieveToken(ctx context.Context, ...) (*awsTokenCache, error)
- type Aws
- func (a *Aws) Authenticate(ctx context.Context, interactive bool) error
- func (a *Aws) CheckImageExistOnPublicECR(ctx context.Context, repo, tag string) (bool, error)
- func (a *Aws) CrossDeviceLogin(ctx context.Context) (*awsTokenCache, error)
- func (a *Aws) DeleteSecrets(ctx context.Context, names ...string) error
- func (a *Aws) GetStackAwsProfileRoleArn(ctx context.Context) (string, string, error)
- func (a *Aws) InteractiveLogin(ctx context.Context) (*awsTokenCache, 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) MakeRegionalARN(service, resourceId string) string
- 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 MockS3ClientAPI
- type MockStsClientAPI
- type PublicECRAPI
- type Region
- type Route53API
- type S3GetObjectAPI
- type SecretManagerAPI
- type SsmParametersAPI
- type StsClientAPI
- type TokenExchangeRequest
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 NewS3FromConfig = func(cfg aws.Config) S3GetObjectAPI { return s3.NewFromConfig(cfg) }
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)