Documentation ¶
Index ¶
- func NewExternalSecret(_ v1alpha1.Component, info *component.ComponentInitInfo) (component.SecretSync, error)
- type ExternalSecret
- func (es *ExternalSecret) CleanUp() error
- func (es *ExternalSecret) CreateSecret(ctx context.Context, secretReq component.SecretRequest) error
- func (es *ExternalSecret) GetComponentMachineAccount() *component.MachineAccount
- func (es *ExternalSecret) RemoveSecret(ctx context.Context, secretReq component.SecretRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExternalSecret ¶
func NewExternalSecret(_ v1alpha1.Component, info *component.ComponentInitInfo) (component.SecretSync, error)
NewExternalSecret returns a new instance for secret synchronization.
Types ¶
type ExternalSecret ¶
type ExternalSecret struct {
// contains filtered or unexported fields
}
func (*ExternalSecret) CleanUp ¶
func (es *ExternalSecret) CleanUp() error
CleanUp represents when the component generates cache information, implement this method to clean datas. This method will be automatically called by the syncer after each tuning is completed.
func (*ExternalSecret) CreateSecret ¶
func (es *ExternalSecret) CreateSecret(ctx context.Context, secretReq component.SecretRequest) error
CreateSecret creates the secret synchronization object, the synchronization result of the secret depends on the space type in the destination environment. If the space type of the request is Kubernetes then is a Secret name else is a folder name on Host.
func (*ExternalSecret) GetComponentMachineAccount ¶ added in v0.4.2
func (es *ExternalSecret) GetComponentMachineAccount() *component.MachineAccount
func (*ExternalSecret) RemoveSecret ¶
func (es *ExternalSecret) RemoveSecret(ctx context.Context, secretReq component.SecretRequest) error
RemoveSecret removes the secret object from the dest environment of the request.
Click to show internal directories.
Click to hide internal directories.