Documentation ¶
Index ¶
- Constants
- func DockerPullImage(ctx context.Context, imageRef string, creds azcore.TokenCredential, ...) error
- func EnrollCertificate(c context.Context, cryptoProvider cryptoprovider.CryptoProvider, ...) (*certmodels.Certificate, crypto.PrivateKey, error)
- func GetDockerClient() (*dockerclient.Client, error)
- func ParseCertificateKeyPair(filename string) (cert *x509.Certificate, key crypto.PrivateKey, err error)
- type AgentEnv
- type AgentSlot
Constants ¶
View Source
const ( EnvKeyAgentConfigDir = "CONFIG_DIR" EnvKeyAgentPushEndpoint = "PUSH_ENDPOINT" EnvKeyAPIBaseURL = "API_BASE_URL" EnvKeyAPIAuthScope = "API_AUTH_SCOPE" EnvKeyAcrImageRepository = "AZURE_ACR_IMAGE_REPOSITORY" )
Variables ¶
This section is empty.
Functions ¶
func DockerPullImage ¶
func EnrollCertificate ¶
func EnrollCertificate(c context.Context, cryptoProvider cryptoprovider.CryptoProvider, client agentclient.ClientWithResponsesInterface, certPolicyID string, openFile func(*certmodels.Certificate) (*os.File, error), onBehalfOf bool) (*certmodels.Certificate, crypto.PrivateKey, error)
func GetDockerClient ¶
func GetDockerClient() (*dockerclient.Client, error)
func ParseCertificateKeyPair ¶
func ParseCertificateKeyPair(filename string) (cert *x509.Certificate, key crypto.PrivateKey, err error)
Types ¶
type AgentEnv ¶
type AgentEnv struct { common.EnvService // contains filtered or unexported fields }
func NewAgentEnv ¶
func NewAgentEnv(envService common.EnvService, mode AgentSlot) (env *AgentEnv, err error)
func (*AgentEnv) AgentClient ¶
func (ae *AgentEnv) AgentClient() (*agentclient.ClientWithResponses, error)
func (*AgentEnv) CertCred ¶
func (ae *AgentEnv) CertCred() (*azidentity.ClientCertificateCredential, error)
Click to show internal directories.
Click to hide internal directories.