Documentation
¶
Index ¶
- Constants
- type CodeConnectionsService
- func (s *CodeConnectionsService) Actions() []service.Action
- func (s *CodeConnectionsService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
- func (s *CodeConnectionsService) HealthCheck() error
- func (s *CodeConnectionsService) Name() string
- func (s *CodeConnectionsService) SetLocator(locator ServiceLocator)
- type Connection
- type Host
- type ServiceLocator
- type Store
- func (s *Store) CreateConnection(name, providerType, hostARN string, tags map[string]string) (*Connection, *service.AWSError)
- func (s *Store) CreateHost(name, providerType, providerEndpoint string, vpcConfig *VPCConfiguration, ...) (*Host, *service.AWSError)
- func (s *Store) DeleteConnection(arn string) *service.AWSError
- func (s *Store) DeleteHost(arn string) *service.AWSError
- func (s *Store) GetConnection(arn string) (*Connection, *service.AWSError)
- func (s *Store) GetHost(arn string) (*Host, *service.AWSError)
- func (s *Store) ListConnections(providerType, hostARN string) []*Connection
- func (s *Store) ListHosts() []*Host
- func (s *Store) ListTagsForResource(arn string) map[string]string
- func (s *Store) TagResource(arn string, tags map[string]string) *service.AWSError
- func (s *Store) UntagResource(arn string, keys []string) *service.AWSError
- func (s *Store) UpdateConnectionStatus(arn, status string) (*Connection, *service.AWSError)
- type VPCConfiguration
Constants ¶
const ( ConnectionStatusPending = "PENDING" ConnectionStatusAvailable = "AVAILABLE" ConnectionStatusError = "ERROR" )
Connection status constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeConnectionsService ¶
type CodeConnectionsService struct {
// contains filtered or unexported fields
}
CodeConnectionsService is the cloudmock implementation of the AWS CodeConnections API.
func New ¶
func New(accountID, region string) *CodeConnectionsService
New returns a new CodeConnectionsService for the given AWS account ID and region.
func NewWithLocator ¶
func NewWithLocator(accountID, region string, locator ServiceLocator) *CodeConnectionsService
NewWithLocator returns a new CodeConnectionsService with a ServiceLocator.
func (*CodeConnectionsService) Actions ¶
func (s *CodeConnectionsService) Actions() []service.Action
Actions returns the list of CodeConnections API actions supported.
func (*CodeConnectionsService) HandleRequest ¶
func (s *CodeConnectionsService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming CodeConnections request to the appropriate handler.
func (*CodeConnectionsService) HealthCheck ¶
func (s *CodeConnectionsService) HealthCheck() error
HealthCheck always returns nil.
func (*CodeConnectionsService) Name ¶
func (s *CodeConnectionsService) Name() string
Name returns the AWS service name used for routing.
func (*CodeConnectionsService) SetLocator ¶
func (s *CodeConnectionsService) SetLocator(locator ServiceLocator)
SetLocator sets the service locator for cross-service calls.
type Connection ¶
type Connection struct {
Name string
ARN string
ProviderType string
HostARN string
ConnectionStatus string
OwnerAccountID string
CreatedAt time.Time
Tags map[string]string
// contains filtered or unexported fields
}
Connection represents a CodeConnections connection to an external SCM provider.
type Host ¶
type Host struct {
Name string
ARN string
ProviderType string
ProviderEndpoint string
Status string
VPCConfiguration *VPCConfiguration
CreatedAt time.Time
Tags map[string]string
}
Host represents a CodeConnections host for self-managed providers.
type ServiceLocator ¶
ServiceLocator resolves other services for cross-service integration.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the in-memory store for all CodeConnections resources.
func (*Store) CreateConnection ¶
func (*Store) CreateHost ¶
func (*Store) GetConnection ¶
func (s *Store) GetConnection(arn string) (*Connection, *service.AWSError)
func (*Store) ListConnections ¶
func (s *Store) ListConnections(providerType, hostARN string) []*Connection
func (*Store) ListTagsForResource ¶
func (*Store) TagResource ¶
func (*Store) UntagResource ¶
func (*Store) UpdateConnectionStatus ¶
func (s *Store) UpdateConnectionStatus(arn, status string) (*Connection, *service.AWSError)