codeconnections

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

View Source
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

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

type ServiceLocator interface {
	Lookup(name string) (service.Service, error)
}

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 NewStore

func NewStore(accountID, region string) *Store

NewStore creates an empty CodeConnections store.

func (*Store) CreateConnection

func (s *Store) CreateConnection(name, providerType, hostARN string, tags map[string]string) (*Connection, *service.AWSError)

func (*Store) CreateHost

func (s *Store) CreateHost(name, providerType, providerEndpoint string, vpcConfig *VPCConfiguration, tags map[string]string) (*Host, *service.AWSError)

func (*Store) DeleteConnection

func (s *Store) DeleteConnection(arn string) *service.AWSError

func (*Store) DeleteHost

func (s *Store) DeleteHost(arn string) *service.AWSError

func (*Store) GetConnection

func (s *Store) GetConnection(arn string) (*Connection, *service.AWSError)

func (*Store) GetHost

func (s *Store) GetHost(arn string) (*Host, *service.AWSError)

func (*Store) ListConnections

func (s *Store) ListConnections(providerType, hostARN string) []*Connection

func (*Store) ListHosts

func (s *Store) ListHosts() []*Host

func (*Store) ListTagsForResource

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

func (*Store) TagResource

func (s *Store) TagResource(arn string, tags map[string]string) *service.AWSError

func (*Store) UntagResource

func (s *Store) UntagResource(arn string, keys []string) *service.AWSError

func (*Store) UpdateConnectionStatus

func (s *Store) UpdateConnectionStatus(arn, status string) (*Connection, *service.AWSError)

type VPCConfiguration

type VPCConfiguration struct {
	VpcID            string
	SubnetIDs        []string
	SecurityGroupIDs []string
	TLSCertificate   string
}

VPCConfiguration describes VPC settings for a host.

Jump to

Keyboard shortcuts

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