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