Documentation
¶
Index ¶
- type AmplifyService
- type App
- type BackendEnvironment
- type Branch
- type DomainAssociation
- type Job
- type Store
- func (s *Store) CreateApp(name, description, repository, platform, iamRole string, ...) *App
- func (s *Store) CreateBackendEnvironment(appID, envName, deploymentArtifacts, stackName string) (*BackendEnvironment, bool)
- func (s *Store) CreateBranch(appID, branchName, description, stage, framework string, enableAutoBuild bool, ...) (*Branch, bool)
- func (s *Store) CreateDomainAssociation(appID, domainName string, enableAutoSubDomain bool, subDomains []SubDomain, ...) (*DomainAssociation, bool)
- func (s *Store) CreateWebhook(appID, branchName, description string, tags map[string]string) (*Webhook, bool)
- func (s *Store) DeleteApp(appID string) bool
- func (s *Store) DeleteBackendEnvironment(appID, envName string) (*BackendEnvironment, bool)
- func (s *Store) DeleteBranch(appID, branchName string) bool
- func (s *Store) DeleteDomainAssociation(appID, domainName string) bool
- func (s *Store) DeleteWebhook(webhookID string) bool
- func (s *Store) GetApp(appID string) (*App, bool)
- func (s *Store) GetBackendEnvironment(appID, envName string) (*BackendEnvironment, bool)
- func (s *Store) GetBranch(appID, branchName string) (*Branch, bool)
- func (s *Store) GetDomainAssociation(appID, domainName string) (*DomainAssociation, bool)
- func (s *Store) GetJob(appID, branchName, jobID string) (*Job, bool)
- func (s *Store) GetWebhook(webhookID string) (*Webhook, bool)
- func (s *Store) ListApps() []*App
- func (s *Store) ListBackendEnvironments(appID string) ([]*BackendEnvironment, bool)
- func (s *Store) ListBranches(appID string) ([]*Branch, bool)
- func (s *Store) ListDomainAssociations(appID string) ([]*DomainAssociation, bool)
- func (s *Store) ListJobs(appID, branchName string) ([]*Job, bool)
- func (s *Store) ListTagsForResource(arn string) (map[string]string, bool)
- func (s *Store) ListWebhooks(appID string) ([]*Webhook, bool)
- func (s *Store) StartJob(appID, branchName, jobType, commitID, commitMessage string, ...) (*Job, bool)
- func (s *Store) StopJob(appID, branchName, jobID string) (*Job, bool)
- func (s *Store) TagResource(arn string, tags map[string]string) bool
- func (s *Store) UntagResource(arn string, keys []string) bool
- func (s *Store) UpdateApp(appID, name, description, platform, iamRole string) (*App, bool)
- func (s *Store) UpdateBranch(appID, branchName, description, stage, framework string) (*Branch, bool)
- func (s *Store) UpdateDomainAssociation(appID, domainName string, enableAutoSubDomain *bool, subDomains []SubDomain) (*DomainAssociation, bool)
- func (s *Store) UpdateWebhook(webhookID, branchName, description string) (*Webhook, bool)
- type SubDomain
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmplifyService ¶
type AmplifyService struct {
// contains filtered or unexported fields
}
AmplifyService is the cloudmock implementation of the AWS Amplify API.
func New ¶
func New(accountID, region string) *AmplifyService
New returns a new AmplifyService for the given AWS account ID and region.
func (*AmplifyService) Actions ¶
func (s *AmplifyService) Actions() []service.Action
Actions returns the list of Amplify API actions supported by this service.
func (*AmplifyService) HandleRequest ¶
func (s *AmplifyService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming Amplify request to the appropriate handler.
func (*AmplifyService) HealthCheck ¶
func (s *AmplifyService) HealthCheck() error
HealthCheck always returns nil (no external dependencies).
func (*AmplifyService) Name ¶
func (s *AmplifyService) Name() string
Name returns the AWS service name used for routing.
type App ¶
type App struct {
AppId string
AppArn string
Name string
Description string
Repository string
Platform string
IamServiceRoleArn string
DefaultDomain string
EnableBranchAutoBuild bool
CreateTime time.Time
UpdateTime time.Time
Tags map[string]string
}
App represents an Amplify application.
type BackendEnvironment ¶
type BackendEnvironment struct {
BackendEnvironmentArn string
EnvironmentName string
AppId string
DeploymentArtifacts string
StackName string
CreateTime time.Time
UpdateTime time.Time
}
BackendEnvironment represents an Amplify backend environment.
type Branch ¶
type Branch struct {
BranchArn string
BranchName string
AppId string
Description string
Stage string
Framework string
EnableAutoBuild bool
EnableNotification bool
DisplayName string
CreateTime time.Time
UpdateTime time.Time
Tags map[string]string
}
Branch represents an Amplify branch.
type DomainAssociation ¶
type DomainAssociation struct {
DomainAssociationArn string
DomainName string
AppId string
EnableAutoSubDomain bool
DomainStatus string
SubDomains []SubDomain
CertificateVerificationDNSRecord string
Tags map[string]string
}
DomainAssociation represents an Amplify domain association.
type Job ¶
type Job struct {
JobArn string
JobId string
AppId string
BranchName string
JobType string
Status string
CommitId string
CommitMessage string
StartTime time.Time
EndTime *time.Time
Lifecycle *lifecycle.Machine
Tags map[string]string
}
Job represents an Amplify build job.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages all Amplify state in memory.
func (*Store) CreateApp ¶
func (s *Store) CreateApp(name, description, repository, platform, iamRole string, tags map[string]string) *App
CreateApp creates a new Amplify app.
func (*Store) CreateBackendEnvironment ¶
func (s *Store) CreateBackendEnvironment(appID, envName, deploymentArtifacts, stackName string) (*BackendEnvironment, bool)
CreateBackendEnvironment creates a new backend environment for an app.
func (*Store) CreateBranch ¶
func (s *Store) CreateBranch(appID, branchName, description, stage, framework string, enableAutoBuild bool, tags map[string]string) (*Branch, bool)
CreateBranch creates a new branch for an app.
func (*Store) CreateDomainAssociation ¶
func (s *Store) CreateDomainAssociation(appID, domainName string, enableAutoSubDomain bool, subDomains []SubDomain, tags map[string]string) (*DomainAssociation, bool)
CreateDomainAssociation creates a new domain association.
func (*Store) CreateWebhook ¶
func (s *Store) CreateWebhook(appID, branchName, description string, tags map[string]string) (*Webhook, bool)
CreateWebhook creates a new webhook.
func (*Store) DeleteBackendEnvironment ¶
func (s *Store) DeleteBackendEnvironment(appID, envName string) (*BackendEnvironment, bool)
DeleteBackendEnvironment removes a backend environment.
func (*Store) DeleteBranch ¶
DeleteBranch removes a branch.
func (*Store) DeleteDomainAssociation ¶
DeleteDomainAssociation removes a domain association.
func (*Store) DeleteWebhook ¶
DeleteWebhook removes a webhook.
func (*Store) GetBackendEnvironment ¶
func (s *Store) GetBackendEnvironment(appID, envName string) (*BackendEnvironment, bool)
GetBackendEnvironment returns a backend environment by app and env name.
func (*Store) GetDomainAssociation ¶
func (s *Store) GetDomainAssociation(appID, domainName string) (*DomainAssociation, bool)
GetDomainAssociation returns a domain association.
func (*Store) GetWebhook ¶
GetWebhook returns a webhook.
func (*Store) ListBackendEnvironments ¶
func (s *Store) ListBackendEnvironments(appID string) ([]*BackendEnvironment, bool)
ListBackendEnvironments returns all backend environments for an app.
func (*Store) ListBranches ¶
ListBranches returns all branches for an app.
func (*Store) ListDomainAssociations ¶
func (s *Store) ListDomainAssociations(appID string) ([]*DomainAssociation, bool)
ListDomainAssociations returns all domain associations for an app.
func (*Store) ListTagsForResource ¶
ListTagsForResource returns tags for a resource by ARN.
func (*Store) ListWebhooks ¶
ListWebhooks returns all webhooks for an app.
func (*Store) StartJob ¶
func (s *Store) StartJob(appID, branchName, jobType, commitID, commitMessage string, tags map[string]string) (*Job, bool)
StartJob starts a new build job.
func (*Store) TagResource ¶
TagResource applies tags to a resource by ARN.
func (*Store) UntagResource ¶
UntagResource removes tags from a resource by ARN.
func (*Store) UpdateBranch ¶
func (s *Store) UpdateBranch(appID, branchName, description, stage, framework string) (*Branch, bool)
UpdateBranch updates a branch.
func (*Store) UpdateDomainAssociation ¶
func (s *Store) UpdateDomainAssociation(appID, domainName string, enableAutoSubDomain *bool, subDomains []SubDomain) (*DomainAssociation, bool)
UpdateDomainAssociation updates a domain association.