Documentation
¶
Index ¶
Constants ¶
View Source
const ( AWSApiECRHost = "api.ecr.eu-north-1.amazonaws.com" AWSRegistryHost = "account-id.dkr.ecr.eu-north-1.amazonaws.com" )
View Source
const (
AzureAuthHost = "login.microsoftonline.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSEnvironment ¶
A test Cloud Environment imitating AWS Pod Identity Agents and ECR auth. In order to test AWS OCI, we have to bind some hosts to localhost. We use a mock dns server to create an A record which binds api.ecr.eu-north-1.amazonaws.com and account-id.dkr.ecr.eu-north-1.amazonaws.com to 127.0.0.1. All AWS OCI tests have to use account-id.dkr.ecr.eu-north-1.amazonaws.com (AWSRegistryHost) as host.
func NewAWSEnvironment ¶
func NewAWSEnvironment( registryAddr string, ) (*AWSEnvironment, error)
func (*AWSEnvironment) Close ¶
func (env *AWSEnvironment) Close()
type AzureEnvironment ¶
A test Cloud Environment imitating Azure Active Directory.
func NewAzureEnvironment ¶
func NewAzureEnvironment() (*AzureEnvironment, error)
func (*AzureEnvironment) Close ¶
func (env *AzureEnvironment) Close()
type GCPEnvironment ¶
A test Cloud Environment imitating GCP Metadata Server.
func NewGCPEnvironment ¶
func NewGCPEnvironment() (*GCPEnvironment, error)
func (*GCPEnvironment) Close ¶
func (env *GCPEnvironment) Close()
Click to show internal directories.
Click to hide internal directories.