apprunner

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

type AuthenticationConfiguration struct {
	AccessRoleARN string
	ConnectionARN string
}

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

type InstanceConfiguration struct {
	CPU             string
	Memory          string
	InstanceRoleARN string
}

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

type SourceCodeVersion struct {
	Type  string // BRANCH
	Value string
}

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 NewStore

func NewStore(accountID, region string) *Store

NewStore returns a new empty App Runner Store.

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

func (s *Store) DeleteAutoScalingConfiguration(arn string) bool

DeleteAutoScalingConfiguration marks an ASC as deleted.

func (*Store) DeleteService

func (s *Store) DeleteService(nameOrARN string) (*Service, bool)

DeleteService marks a service as deleted.

func (*Store) DeleteVpcConnector

func (s *Store) DeleteVpcConnector(arn string) bool

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

func (s *Store) GetService(nameOrARN string) (*Service, bool)

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

func (s *Store) ListServices() []*Service

ListServices returns all services.

func (*Store) ListTagsForResource

func (s *Store) ListTagsForResource(resourceARN string) map[string]string

ListTagsForResource returns tags for a resource by ARN.

func (*Store) ListVpcConnectors

func (s *Store) ListVpcConnectors() []*VpcConnector

ListVpcConnectors returns all VPC connectors.

func (*Store) PauseService

func (s *Store) PauseService(nameOrARN string) (*Service, bool)

PauseService pauses a running service.

func (*Store) ResumeService

func (s *Store) ResumeService(nameOrARN string) (*Service, bool)

ResumeService resumes a paused service.

func (*Store) TagResource

func (s *Store) TagResource(resourceARN string, tags map[string]string)

TagResource applies tags to any resource by ARN.

func (*Store) UntagResource

func (s *Store) UntagResource(resourceARN string, keys []string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL