Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sSecretDeployer ¶
type K8sSecretDeployer struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *K8sSecretDeployerConfig) (*K8sSecretDeployer, error)
func NewWithLogger ¶
func NewWithLogger(config *K8sSecretDeployerConfig, logger deployer.Logger) (*K8sSecretDeployer, error)
func (*K8sSecretDeployer) Deploy ¶
func (d *K8sSecretDeployer) Deploy(ctx context.Context, certPem string, privkeyPem string) (*deployer.DeployResult, error)
type K8sSecretDeployerConfig ¶
type K8sSecretDeployerConfig struct { // kubeconfig 文件内容。 KubeConfig string `json:"kubeConfig,omitempty"` // K8s 命名空间。 Namespace string `json:"namespace,omitempty"` // K8s Secret 名称。 SecretName string `json:"secretName"` // K8s Secret 中用于存放证书的 Key。 SecretDataKeyForCrt string `json:"secretDataKeyForCrt,omitempty"` // K8s Secret 中用于存放私钥的 Key。 SecretDataKeyForKey string `json:"secretDataKeyForKey,omitempty"` }
Click to show internal directories.
Click to hide internal directories.