Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=vaultsecretsync.lestak.sh
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type EmailNotification
- type FilterConfig
- type NotificationEvent
- type NotificationMessage
- type NotificationSpec
- type PathFilterConfig
- type RegexpFilterConfig
- type RenameTransform
- type SlackNotification
- type StoreConfig
- type TransformSpec
- type VaultSecretSync
- type VaultSecretSyncList
- type VaultSecretSyncSpec
- type VaultSecretSyncStatus
- type WebhookNotification
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "vaultsecretsync.lestak.sh", Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type EmailNotification ¶
type EmailNotification struct { Events []NotificationEvent `json:"events"` To string `yaml:"to,omitempty" json:"to,omitempty"` From string `yaml:"from,omitempty" json:"from,omitempty"` Subject string `yaml:"subject,omitempty" json:"subject,omitempty"` Body string `yaml:"body,omitempty" json:"body,omitempty"` Host string `yaml:"host,omitempty" json:"host,omitempty"` Port int `yaml:"port,omitempty" json:"port,omitempty"` Username string `yaml:"username,omitempty" json:"username,omitempty"` Password string `yaml:"password,omitempty" json:"password,omitempty"` InsecureSkipVerify bool `yaml:"insecureSkipVerify,omitempty" json:"insecureSkipVerify,omitempty"` }
func (*EmailNotification) DeepCopy ¶
func (in *EmailNotification) DeepCopy() *EmailNotification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailNotification.
func (*EmailNotification) DeepCopyInto ¶
func (in *EmailNotification) DeepCopyInto(out *EmailNotification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterConfig ¶
type FilterConfig struct { Regex *RegexpFilterConfig `json:"regex,omitempty" yaml:"regex,omitempty"` Path *PathFilterConfig `json:"path,omitempty" yaml:"path,omitempty"` }
func (*FilterConfig) DeepCopy ¶
func (in *FilterConfig) DeepCopy() *FilterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterConfig.
func (*FilterConfig) DeepCopyInto ¶
func (in *FilterConfig) DeepCopyInto(out *FilterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationEvent ¶
type NotificationEvent string
const ( NotificationEventSyncSuccess NotificationEvent = "success" NotificationEventSyncFailure NotificationEvent = "failure" )
type NotificationMessage ¶
type NotificationMessage struct { Event NotificationEvent `json:"event"` Message string `json:"message"` VaultSecretSync VaultSecretSync `json:"vaultSecretSync"` }
func (*NotificationMessage) DeepCopy ¶
func (in *NotificationMessage) DeepCopy() *NotificationMessage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationMessage.
func (*NotificationMessage) DeepCopyInto ¶
func (in *NotificationMessage) DeepCopyInto(out *NotificationMessage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationSpec ¶
type NotificationSpec struct { Webhook *WebhookNotification `json:"webhook,omitempty"` Email *EmailNotification `json:"email,omitempty"` Slack *SlackNotification `json:"slack,omitempty"` }
func (*NotificationSpec) DeepCopy ¶
func (in *NotificationSpec) DeepCopy() *NotificationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationSpec.
func (*NotificationSpec) DeepCopyInto ¶
func (in *NotificationSpec) DeepCopyInto(out *NotificationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PathFilterConfig ¶
type PathFilterConfig struct { Include []string `json:"include,omitempty" yaml:"include,omitempty"` Exclude []string `json:"exclude,omitempty" yaml:"exclude,omitempty"` }
func (*PathFilterConfig) DeepCopy ¶
func (in *PathFilterConfig) DeepCopy() *PathFilterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PathFilterConfig.
func (*PathFilterConfig) DeepCopyInto ¶
func (in *PathFilterConfig) DeepCopyInto(out *PathFilterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegexpFilterConfig ¶
type RegexpFilterConfig struct { Include []string `json:"include,omitempty" yaml:"include,omitempty"` Exclude []string `json:"exclude,omitempty" yaml:"exclude,omitempty"` }
func (*RegexpFilterConfig) DeepCopy ¶
func (in *RegexpFilterConfig) DeepCopy() *RegexpFilterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegexpFilterConfig.
func (*RegexpFilterConfig) DeepCopyInto ¶
func (in *RegexpFilterConfig) DeepCopyInto(out *RegexpFilterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RenameTransform ¶
func (*RenameTransform) DeepCopy ¶
func (in *RenameTransform) DeepCopy() *RenameTransform
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RenameTransform.
func (*RenameTransform) DeepCopyInto ¶
func (in *RenameTransform) DeepCopyInto(out *RenameTransform)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackNotification ¶
type SlackNotification struct { Events []NotificationEvent `json:"events"` URL *string `yaml:"url,omitempty" json:"url,omitempty"` URLSecret *string `yaml:"urlSecret,omitempty" json:"urlSecret,omitempty"` URLSecretKey *string `yaml:"urlSecretKey,omitempty" json:"urlSecretKey,omitempty"` Body string `yaml:"body,omitempty" json:"body,omitempty"` }
func (*SlackNotification) DeepCopy ¶
func (in *SlackNotification) DeepCopy() *SlackNotification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackNotification.
func (*SlackNotification) DeepCopyInto ¶
func (in *SlackNotification) DeepCopyInto(out *SlackNotification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoreConfig ¶
type StoreConfig struct { AWS *aws.AwsClient `json:"aws,omitempty" yaml:"aws,omitempty"` GCP *gcp.GcpClient `json:"gcp,omitempty" yaml:"gcp,omitempty"` GitHub *github.GitHubClient `json:"github,omitempty" yaml:"github,omitempty"` Vault *vault.VaultClient `json:"vault,omitempty" yaml:"vault,omitempty"` HTTP *httpstore.HTTPClient `json:"http,omitempty" yaml:"http,omitempty"` }
func (*StoreConfig) DeepCopy ¶
func (in *StoreConfig) DeepCopy() *StoreConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreConfig.
func (*StoreConfig) DeepCopyInto ¶
func (in *StoreConfig) DeepCopyInto(out *StoreConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransformSpec ¶
type TransformSpec struct { Include []string `yaml:"include,omitempty" json:"include,omitempty"` Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"` Rename []RenameTransform `json:"rename,omitempty"` Template *string `json:"template,omitempty"` }
func (*TransformSpec) DeepCopy ¶
func (in *TransformSpec) DeepCopy() *TransformSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransformSpec.
func (*TransformSpec) DeepCopyInto ¶
func (in *TransformSpec) DeepCopyInto(out *TransformSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VaultSecretSync ¶
type VaultSecretSync struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VaultSecretSyncSpec `json:"spec,omitempty"` Status VaultSecretSyncStatus `json:"status,omitempty"` }
VaultSecretSync is the Schema for the vaultsecretsyncs API
func (*VaultSecretSync) DeepCopy ¶
func (in *VaultSecretSync) DeepCopy() *VaultSecretSync
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VaultSecretSync.
func (*VaultSecretSync) DeepCopyInto ¶
func (in *VaultSecretSync) DeepCopyInto(out *VaultSecretSync)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VaultSecretSync) DeepCopyObject ¶
func (in *VaultSecretSync) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VaultSecretSyncList ¶
type VaultSecretSyncList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VaultSecretSync `json:"items"` }
VaultSecretSyncList contains a list of VaultSecretSync
func (*VaultSecretSyncList) DeepCopy ¶
func (in *VaultSecretSyncList) DeepCopy() *VaultSecretSyncList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VaultSecretSyncList.
func (*VaultSecretSyncList) DeepCopyInto ¶
func (in *VaultSecretSyncList) DeepCopyInto(out *VaultSecretSyncList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VaultSecretSyncList) DeepCopyObject ¶
func (in *VaultSecretSyncList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VaultSecretSyncSpec ¶
type VaultSecretSyncSpec struct { Source *vault.VaultClient `yaml:"source" json:"source"` Dest []*StoreConfig `yaml:"dest" json:"dest"` SyncDelete *bool `yaml:"syncDelete,omitempty" json:"syncDelete,omitempty"` DryRun *bool `yaml:"dryRun,omitempty" json:"dryRun,omitempty"` Filters *FilterConfig `yaml:"filters,omitempty" json:"filters,omitempty"` Transforms *TransformSpec `json:"transforms,omitempty"` Notifications []*NotificationSpec `json:"notifications,omitempty"` }
VaultSecretSyncSpec defines the desired state of VaultSecretSync
func (*VaultSecretSyncSpec) DeepCopy ¶
func (in *VaultSecretSyncSpec) DeepCopy() *VaultSecretSyncSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VaultSecretSyncSpec.
func (*VaultSecretSyncSpec) DeepCopyInto ¶
func (in *VaultSecretSyncSpec) DeepCopyInto(out *VaultSecretSyncSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VaultSecretSyncStatus ¶
type VaultSecretSyncStatus struct { Status string `json:"status,omitempty"` LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"` SyncDestinations int `json:"syncDestinations,omitempty"` Hash string `json:"hash,omitempty"` }
VaultSecretSyncStatus defines the observed state of VaultSecretSync
func (*VaultSecretSyncStatus) DeepCopy ¶
func (in *VaultSecretSyncStatus) DeepCopy() *VaultSecretSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VaultSecretSyncStatus.
func (*VaultSecretSyncStatus) DeepCopyInto ¶
func (in *VaultSecretSyncStatus) DeepCopyInto(out *VaultSecretSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookNotification ¶
type WebhookNotification struct { Events []NotificationEvent `json:"events"` URL string `yaml:"url,omitempty" json:"url,omitempty"` Method string `yaml:"method,omitempty" json:"method,omitempty"` Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty"` HeaderSecret *string `yaml:"headerSecret,omitempty" json:"headerSecret,omitempty"` Body string `yaml:"body,omitempty" json:"body,omitempty"` ExcludeBody bool `yaml:"excludeBody,omitempty" json:"excludeBody,omitempty"` }
Webhook represents the configuration for a webhook.
func (*WebhookNotification) DeepCopy ¶
func (in *WebhookNotification) DeepCopy() *WebhookNotification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookNotification.
func (*WebhookNotification) DeepCopyInto ¶
func (in *WebhookNotification) DeepCopyInto(out *WebhookNotification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.