Documentation
¶
Index ¶
- func ParseSecretData(s *Secret) error
- func UnmarshalSecretJSON(b []byte, s *Secret) error
- type AwsKey
- type AzureConnector
- type Dictionary
- type DockerSecret
- type DockerSecretAuth
- type EcrPull
- type GcrSecret
- type KeyPair
- type NatsAccount
- type Opaque
- type OpaqueEncoding
- type Secret
- type SecretData
- type SecretType
- type Tls
- type UsernamePassword
- type UsernamePasswordEncoding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSecretData ¶
func UnmarshalSecretJSON ¶
TODO: Extend the go-converter to generate this method for JOI schemas that use the "alternatives" option.
Types ¶
type AzureConnector ¶
type Dictionary ¶
type DockerSecret ¶
type DockerSecret struct {
Auths map[string]DockerSecretAuth `json:"auths"`
}
type DockerSecretAuth ¶
type GcrSecret ¶
type GcrSecret struct {
Type string `json:"type"`
ProjectId string `json:"project_id"`
PrivateKeyId string `json:"private_key_id"`
PrivateKey string `json:"private_key"`
ClientEmail string `json:"client_email"`
ClientId string `json:"client_id"`
AuthUri string `json:"auth_uri"`
TokenUri string `json:"token_uri"`
AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url"`
ClientX509CertUrl string `json:"client_x509_cert_url"`
}
type NatsAccount ¶
type Opaque ¶
type Opaque struct {
Payload any `json:"payload,omitempty"`
Encoding OpaqueEncoding `json:"encoding,omitempty"`
}
type OpaqueEncoding ¶
type OpaqueEncoding string
const ( OpaqueEncodingPlain OpaqueEncoding = "plain" OpaqueEncodingBase64 OpaqueEncoding = "base64" )
type Secret ¶
type Secret struct {
Id string `json:"id,omitempty"`
Name base.Name `json:"name,omitempty"`
Kind base.Kind `json:"kind,omitempty"`
Version float32 `json:"version"`
Description string `json:"description,omitempty"`
Tags base.Tags `json:"tags,omitempty"`
Created string `json:"created,omitempty"`
LastModified string `json:"lastModified,omitempty"`
Links base.Links `json:"links,omitempty"`
Type SecretType `json:"type,omitempty"`
Data SecretData `json:"data,omitempty"`
}
type SecretData ¶
type SecretData any /* TODO: [object Object]*/
type SecretType ¶
type SecretType string
const ( SecretTypeOpaque SecretType = "opaque" SecretTypeTls SecretType = "tls" SecretTypeGcp SecretType = "gcp" SecretTypeAws SecretType = "aws" SecretTypeEcr SecretType = "ecr" SecretTypeUserpass SecretType = "userpass" SecretTypeKeypair SecretType = "keypair" SecretTypeAzureSdk SecretType = "azure-sdk" SecretTypeAzureConnector SecretType = "azure-connector" SecretTypeDocker SecretType = "docker" SecretTypeDictionary SecretType = "dictionary" SecretTypeNatsAccount SecretType = "nats-account" )
type UsernamePassword ¶
type UsernamePassword struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Encoding UsernamePasswordEncoding `json:"encoding,omitempty"`
}
type UsernamePasswordEncoding ¶
type UsernamePasswordEncoding string
const ( UsernamePasswordEncodingPlain UsernamePasswordEncoding = "plain" UsernamePasswordEncodingBase64 UsernamePasswordEncoding = "base64" )
Click to show internal directories.
Click to hide internal directories.