Documentation
¶
Index ¶
- type AppRunnerService
- type AuthenticationConfiguration
- type AutoScalingConfigSummary
- type AutoScalingConfiguration
- type CodeConfiguration
- type CodeConfigurationValues
- type CodeRepository
- type Connection
- type ImageRepository
- type InstanceConfiguration
- type Service
- type SourceCodeVersion
- type SourceConfiguration
- type Store
- func (s *Store) CreateAutoScalingConfiguration(name string, minSize, maxSize, maxConcurrency int, tags map[string]string) (*AutoScalingConfiguration, error)
- func (s *Store) CreateConnection(name, providerType string, tags map[string]string) (*Connection, error)
- func (s *Store) CreateService(name string, sourceCfg *SourceConfiguration, ...) (*Service, error)
- func (s *Store) CreateVpcConnector(name string, subnets, securityGroups []string, tags map[string]string) (*VpcConnector, error)
- func (s *Store) DeleteAutoScalingConfiguration(arn string) bool
- func (s *Store) DeleteService(nameOrARN string) (*Service, bool)
- func (s *Store) DeleteVpcConnector(arn string) bool
- func (s *Store) DescribeAutoScalingConfiguration(arn string) (*AutoScalingConfiguration, bool)
- func (s *Store) DescribeVpcConnector(arn string) (*VpcConnector, bool)
- func (s *Store) GetConnection(arn string) (*Connection, bool)
- func (s *Store) GetService(nameOrARN string) (*Service, bool)
- func (s *Store) ListAutoScalingConfigurations(name string) []*AutoScalingConfiguration
- func (s *Store) ListServices() []*Service
- func (s *Store) ListTagsForResource(resourceARN string) map[string]string
- func (s *Store) ListVpcConnectors() []*VpcConnector
- func (s *Store) PauseService(nameOrARN string) (*Service, bool)
- func (s *Store) ResumeService(nameOrARN string) (*Service, bool)
- func (s *Store) TagResource(resourceARN string, tags map[string]string)
- func (s *Store) UntagResource(resourceARN string, keys []string)
- func (s *Store) UpdateService(nameOrARN string, sourceCfg *SourceConfiguration, ...) (*Service, bool)
- type VpcConnector
- type VpcConnectorSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRunnerService ¶
type AppRunnerService struct {
// contains filtered or unexported fields
}
AppRunnerService is the cloudmock implementation of the AWS App Runner API.
func New ¶
func New(accountID, region string) *AppRunnerService
New returns a new AppRunnerService for the given AWS account ID and region.
func (*AppRunnerService) Actions ¶
func (s *AppRunnerService) Actions() []service.Action
Actions returns the list of App Runner API actions supported by this service.
func (*AppRunnerService) HandleRequest ¶
func (s *AppRunnerService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming App Runner request to the appropriate handler.
func (*AppRunnerService) HealthCheck ¶
func (s *AppRunnerService) HealthCheck() error
HealthCheck always returns nil (no external dependencies).
func (*AppRunnerService) Name ¶
func (s *AppRunnerService) Name() string
Name returns the AWS service name used for routing.
type AuthenticationConfiguration ¶
AuthenticationConfiguration holds authentication credentials.
type AutoScalingConfigSummary ¶
type AutoScalingConfigSummary struct {
AutoScalingConfigurationARN string
AutoScalingConfigurationName string
AutoScalingConfigurationRevision int
}
AutoScalingConfigSummary is a reference to an ASC.
type AutoScalingConfiguration ¶
type AutoScalingConfiguration struct {
AutoScalingConfigurationARN string
AutoScalingConfigurationName string
AutoScalingConfigurationRevision int
Latest bool
Status string // ACTIVE, INACTIVE
MinSize int
MaxSize int
MaxConcurrency int
Tags map[string]string
CreatedAt time.Time
DeletedAt *time.Time
}
AutoScalingConfiguration represents an App Runner ASC.
type CodeConfiguration ¶
type CodeConfiguration struct {
ConfigurationSource string
CodeConfigurationValues *CodeConfigurationValues
}
CodeConfiguration holds build and start settings.
type CodeConfigurationValues ¶
type CodeConfigurationValues struct {
Runtime string
BuildCommand string
StartCommand string
Port string
}
CodeConfigurationValues are explicit build settings.
type CodeRepository ¶
type CodeRepository struct {
RepositoryURL string
SourceCodeVersion *SourceCodeVersion
CodeConfiguration *CodeConfiguration
ConnectionARN string
}
CodeRepository describes a source code repository.
type Connection ¶
type Connection struct {
ConnectionName string
ConnectionARN string
ProviderType string // GITHUB, BITBUCKET
Status string // PENDING_HANDSHAKE, AVAILABLE, ERROR, DELETED
Tags map[string]string
CreatedAt time.Time
}
Connection represents an App Runner connection (GitHub/Bitbucket OAuth).
type ImageRepository ¶
type ImageRepository struct {
ImageIdentifier string
ImageRepositoryType string // ECR, ECR_PUBLIC
}
ImageRepository describes a container image source.
type InstanceConfiguration ¶
InstanceConfiguration describes compute resources.
type Service ¶
type Service struct {
ServiceID string
ServiceName string
ServiceARN string
ServiceURL string
Status string // CREATE_IN_PROGRESS, RUNNING, PAUSED, DELETE_IN_PROGRESS, DELETED, OPERATION_IN_PROGRESS
SourceConfiguration *SourceConfiguration
InstanceConfiguration *InstanceConfiguration
AutoScalingConfigurationSummary *AutoScalingConfigSummary
VpcConnectorSummary *VpcConnectorSummary
Tags map[string]string
CreatedAt time.Time
UpdatedAt time.Time
}
Service represents an App Runner service.
type SourceCodeVersion ¶
SourceCodeVersion specifies the version to deploy.
type SourceConfiguration ¶
type SourceConfiguration struct {
RepositoryType string // IMAGE, GITHUB, BITBUCKET
ImageRepository *ImageRepository
CodeRepository *CodeRepository
AutoDeploymentsEnabled bool
AuthenticationConfiguration *AuthenticationConfiguration
}
SourceConfiguration describes the service source.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages all App Runner resources in memory.
func (*Store) CreateAutoScalingConfiguration ¶
func (s *Store) CreateAutoScalingConfiguration(name string, minSize, maxSize, maxConcurrency int, tags map[string]string) (*AutoScalingConfiguration, error)
CreateAutoScalingConfiguration creates a new ASC revision.
func (*Store) CreateConnection ¶
func (s *Store) CreateConnection(name, providerType string, tags map[string]string) (*Connection, error)
CreateConnection creates a new connection.
func (*Store) CreateService ¶
func (s *Store) CreateService(name string, sourceCfg *SourceConfiguration, instanceCfg *InstanceConfiguration, tags map[string]string) (*Service, error)
CreateService creates a new App Runner service.
func (*Store) CreateVpcConnector ¶
func (s *Store) CreateVpcConnector(name string, subnets, securityGroups []string, tags map[string]string) (*VpcConnector, error)
CreateVpcConnector creates a new VPC connector.
func (*Store) DeleteAutoScalingConfiguration ¶
DeleteAutoScalingConfiguration marks an ASC as deleted.
func (*Store) DeleteService ¶
DeleteService marks a service as deleted.
func (*Store) DeleteVpcConnector ¶
DeleteVpcConnector marks a VPC connector as deleted.
func (*Store) DescribeAutoScalingConfiguration ¶
func (s *Store) DescribeAutoScalingConfiguration(arn string) (*AutoScalingConfiguration, bool)
DescribeAutoScalingConfiguration retrieves an ASC by ARN.
func (*Store) DescribeVpcConnector ¶
func (s *Store) DescribeVpcConnector(arn string) (*VpcConnector, bool)
DescribeVpcConnector retrieves a VPC connector by ARN.
func (*Store) GetConnection ¶
func (s *Store) GetConnection(arn string) (*Connection, bool)
GetConnection retrieves a connection by ARN.
func (*Store) GetService ¶
GetService retrieves a service by ARN or name.
func (*Store) ListAutoScalingConfigurations ¶
func (s *Store) ListAutoScalingConfigurations(name string) []*AutoScalingConfiguration
ListAutoScalingConfigurations returns all ASC configurations.
func (*Store) ListServices ¶
ListServices returns all services.
func (*Store) ListTagsForResource ¶
ListTagsForResource returns tags for a resource by ARN.
func (*Store) ListVpcConnectors ¶
func (s *Store) ListVpcConnectors() []*VpcConnector
ListVpcConnectors returns all VPC connectors.
func (*Store) PauseService ¶
PauseService pauses a running service.
func (*Store) ResumeService ¶
ResumeService resumes a paused service.
func (*Store) TagResource ¶
TagResource applies tags to any resource by ARN.
func (*Store) UntagResource ¶
UntagResource removes tags from a resource by ARN.
func (*Store) UpdateService ¶
func (s *Store) UpdateService(nameOrARN string, sourceCfg *SourceConfiguration, instanceCfg *InstanceConfiguration) (*Service, bool)
UpdateService updates service configuration.
type VpcConnector ¶
type VpcConnector struct {
VpcConnectorARN string
VpcConnectorName string
VpcConnectorRevision int
Subnets []string
SecurityGroups []string
Status string // ACTIVE, INACTIVE
Tags map[string]string
CreatedAt time.Time
DeletedAt *time.Time
}
VpcConnector represents an App Runner VPC connector.
type VpcConnectorSummary ¶
type VpcConnectorSummary struct {
VpcConnectorARN string
VpcConnectorName string
VpcConnectorRevision int
}
VpcConnectorSummary is a reference to a VPC connector.