Documentation ¶
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Channel
- type ChannelCallbackConfig
- type ChannelDingtalkConfig
- type ChannelFlockConfig
- type ChannelList
- type ChannelPrintConfig
- type ChannelSlackConfig
- type ChannelSpec
- type ChannelTelegramConfig
- type ClusterWatcher
- type ClusterWatcherList
- type Watcher
- type WatcherList
- type WatcherSpec
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: "spongeprojects.com", 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 Channel ¶
type Channel struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec ChannelSpec `json:"spec,omitempty"` }
Channel is a top-level type
func (*Channel) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Channel.
func (*Channel) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Channel) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChannelCallbackConfig ¶
type ChannelCallbackConfig struct { Method string `json:"method,omitempty" yaml:"method,omitempty"` URL string `json:"url" yaml:"url"` Proxy string `json:"proxy,omitempty" yaml:"proxy,omitempty"` UseTemplate bool `json:"useTemplate,omitempty" yaml:"useTemplate,omitempty"` AddedTemplate string `json:"addedTemplate,omitempty" yaml:"addedTemplate,omitempty"` DeletedTemplate string `json:"deletedTemplate,omitempty" yaml:"deletedTemplate,omitempty"` UpdatedTemplate string `json:"updatedTemplate,omitempty" yaml:"updatedTemplate,omitempty"` }
ChannelCallbackConfig is config for ChannelCallback,
func (*ChannelCallbackConfig) DeepCopy ¶
func (in *ChannelCallbackConfig) DeepCopy() *ChannelCallbackConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelCallbackConfig.
func (*ChannelCallbackConfig) DeepCopyInto ¶
func (in *ChannelCallbackConfig) DeepCopyInto(out *ChannelCallbackConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelDingtalkConfig ¶
type ChannelDingtalkConfig struct { WebhookURL string `json:"webhookURL" yaml:"webhookURL"` Proxy string `json:"proxy,omitempty" yaml:"proxy,omitempty"` AtMobiles []string `json:"atMobiles,omitempty" yaml:"atMobiles,omitempty"` AtAll bool `json:"atAll,omitempty" yaml:"atAll,omitempty"` AddedTemplate string `json:"addedTemplate,omitempty" yaml:"addedTemplate,omitempty"` DeletedTemplate string `json:"deletedTemplate,omitempty" yaml:"deletedTemplate,omitempty"` UpdatedTemplate string `json:"updatedTemplate,omitempty" yaml:"updatedTemplate,omitempty"` }
ChannelDingtalkConfig is config for ChannelDingtalk,
func (*ChannelDingtalkConfig) DeepCopy ¶
func (in *ChannelDingtalkConfig) DeepCopy() *ChannelDingtalkConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelDingtalkConfig.
func (*ChannelDingtalkConfig) DeepCopyInto ¶
func (in *ChannelDingtalkConfig) DeepCopyInto(out *ChannelDingtalkConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelFlockConfig ¶
type ChannelFlockConfig struct { URL string `json:"url" yaml:"url"` Proxy string `json:"proxy,omitempty" yaml:"proxy,omitempty"` TitleTemplate string `json:"titleTemplate,omitempty" yaml:"titleTemplate,omitempty"` AddedTemplate string `json:"addedTemplate,omitempty" yaml:"addedTemplate,omitempty"` DeletedTemplate string `json:"deletedTemplate,omitempty" yaml:"deletedTemplate,omitempty"` UpdatedTemplate string `json:"updatedTemplate,omitempty" yaml:"updatedTemplate,omitempty"` }
ChannelFlockConfig is config for ChannelFlock,
func (*ChannelFlockConfig) DeepCopy ¶
func (in *ChannelFlockConfig) DeepCopy() *ChannelFlockConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelFlockConfig.
func (*ChannelFlockConfig) DeepCopyInto ¶
func (in *ChannelFlockConfig) DeepCopyInto(out *ChannelFlockConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelList ¶
type ChannelList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []Channel `json:"items"` }
ChannelList no client needed for list as it's been created in above
func (*ChannelList) DeepCopy ¶
func (in *ChannelList) DeepCopy() *ChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelList.
func (*ChannelList) DeepCopyInto ¶
func (in *ChannelList) DeepCopyInto(out *ChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChannelList) DeepCopyObject ¶
func (in *ChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChannelPrintConfig ¶
type ChannelPrintConfig struct { Writer string `json:"writer" yaml:"writer"` UseTemplate bool `json:"useTemplate,omitempty" yaml:"useTemplate,omitempty"` AddedTemplate string `json:"addedTemplate,omitempty" yaml:"addedTemplate,omitempty"` DeletedTemplate string `json:"deletedTemplate,omitempty" yaml:"deletedTemplate,omitempty"` UpdatedTemplate string `json:"updatedTemplate,omitempty" yaml:"updatedTemplate,omitempty"` }
ChannelPrintConfig is config for ChannelPrint,
func (*ChannelPrintConfig) DeepCopy ¶
func (in *ChannelPrintConfig) DeepCopy() *ChannelPrintConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelPrintConfig.
func (*ChannelPrintConfig) DeepCopyInto ¶
func (in *ChannelPrintConfig) DeepCopyInto(out *ChannelPrintConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelSlackConfig ¶
type ChannelSlackConfig struct { Token string `json:"token" yaml:"token"` Proxy string `json:"proxy,omitempty" yaml:"proxy,omitempty"` WebhookURL string `json:"webhookURL" yaml:"webhookURL"` TitleTemplate string `json:"titleTemplate,omitempty" yaml:"titleTemplate,omitempty"` AddedTemplate string `json:"addedTemplate,omitempty" yaml:"addedTemplate,omitempty"` DeletedTemplate string `json:"deletedTemplate,omitempty" yaml:"deletedTemplate,omitempty"` UpdatedTemplate string `json:"updatedTemplate,omitempty" yaml:"updatedTemplate,omitempty"` }
ChannelSlackConfig is config for ChannelSlack,
func (*ChannelSlackConfig) DeepCopy ¶
func (in *ChannelSlackConfig) DeepCopy() *ChannelSlackConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelSlackConfig.
func (*ChannelSlackConfig) DeepCopyInto ¶
func (in *ChannelSlackConfig) DeepCopyInto(out *ChannelSlackConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelSpec ¶
type ChannelSpec struct { // Type is the type of the channel Type string `json:"type" yaml:"type"` Callback *ChannelCallbackConfig `json:"callback,omitempty" yaml:"callback,omitempty"` Dingtalk *ChannelDingtalkConfig `json:"dingtalk,omitempty" yaml:"dingtalk,omitempty"` Flock *ChannelFlockConfig `json:"flock,omitempty" yaml:"flock,omitempty"` Print *ChannelPrintConfig `json:"print,omitempty" yaml:"print,omitempty"` Slack *ChannelSlackConfig `json:"slack,omitempty" yaml:"slack,omitempty"` Telegram *ChannelTelegramConfig `json:"telegram,omitempty" yaml:"telegram,omitempty"` // Shim is a special field used in new channel development Shim map[string]string `json:"shim,omitempty" yaml:"shim,omitempty"` }
ChannelSpec defines a channel to receive notifications
func (*ChannelSpec) DeepCopy ¶
func (in *ChannelSpec) DeepCopy() *ChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelSpec.
func (*ChannelSpec) DeepCopyInto ¶
func (in *ChannelSpec) DeepCopyInto(out *ChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelTelegramConfig ¶
type ChannelTelegramConfig struct { Token string `json:"token" yaml:"token"` ChatIDs []string `json:"chatIDs" yaml:"chatIDs"` Proxy string `json:"proxy,omitempty" yaml:"proxy,omitempty"` AddedTemplate string `json:"addedTemplate,omitempty" yaml:"addedTemplate,omitempty"` DeletedTemplate string `json:"deletedTemplate,omitempty" yaml:"deletedTemplate,omitempty"` UpdatedTemplate string `json:"updatedTemplate,omitempty" yaml:"updatedTemplate,omitempty"` }
ChannelTelegramConfig is config for ChannelTelegram,
func (*ChannelTelegramConfig) DeepCopy ¶
func (in *ChannelTelegramConfig) DeepCopy() *ChannelTelegramConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelTelegramConfig.
func (*ChannelTelegramConfig) DeepCopyInto ¶
func (in *ChannelTelegramConfig) DeepCopyInto(out *ChannelTelegramConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterWatcher ¶
type ClusterWatcher struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec WatcherSpec `json:"spec,omitempty"` }
ClusterWatcher is a top-level type
func (*ClusterWatcher) DeepCopy ¶
func (in *ClusterWatcher) DeepCopy() *ClusterWatcher
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWatcher.
func (*ClusterWatcher) DeepCopyInto ¶
func (in *ClusterWatcher) DeepCopyInto(out *ClusterWatcher)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterWatcher) DeepCopyObject ¶
func (in *ClusterWatcher) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterWatcherList ¶
type ClusterWatcherList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []ClusterWatcher `json:"items"` }
ClusterWatcherList no client needed for list as it's been created in above
func (*ClusterWatcherList) DeepCopy ¶
func (in *ClusterWatcherList) DeepCopy() *ClusterWatcherList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWatcherList.
func (*ClusterWatcherList) DeepCopyInto ¶
func (in *ClusterWatcherList) DeepCopyInto(out *ClusterWatcherList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterWatcherList) DeepCopyObject ¶
func (in *ClusterWatcherList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Watcher ¶
type Watcher struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec WatcherSpec `json:"spec,omitempty"` }
Watcher is a top-level type
func (*Watcher) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Watcher.
func (*Watcher) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Watcher) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WatcherList ¶
type WatcherList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []Watcher `json:"items"` }
WatcherList no client needed for list as it's been created in above
func (*WatcherList) DeepCopy ¶
func (in *WatcherList) DeepCopy() *WatcherList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatcherList.
func (*WatcherList) DeepCopyInto ¶
func (in *WatcherList) DeepCopyInto(out *WatcherList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WatcherList) DeepCopyObject ¶
func (in *WatcherList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WatcherSpec ¶
type WatcherSpec struct { // Resource is the resource to watch, e.g. "deployments.v1.apps" Resource string `json:"resource" yaml:"resource"` // NoticeWhenAdded determine whether to notice when a resource is added NoticeWhenAdded bool `json:"noticeWhenAdded" yaml:"noticeWhenAdded"` // NoticeWhenDeleted determine whether to notice when a resource is deleted NoticeWhenDeleted bool `json:"noticeWhenDeleted" yaml:"noticeWhenDeleted"` // NoticeWhenUpdated determine whether to notice when a resource is updated, // When UpdateOn is not nil, only notice when fields in UpdateOn is changed NoticeWhenUpdated bool `json:"noticeWhenUpdated" yaml:"noticeWhenUpdated"` // UpdateOn defines fields to watch, used with NoticeWhenUpdated UpdateOn []string `json:"updateOn,omitempty" yaml:"updateOn,omitempty"` // ChannelNames defines channels to send notification ChannelNames []string `json:"channelNames,omitempty" yaml:"channelNames,omitempty"` // ResyncPeriod is the resync period in reflectors for this resource ResyncPeriod string `json:"resyncPeriod,omitempty" yaml:"resyncPeriod,omitempty"` // Workers is the number of workers Workers int `json:"workers,omitempty" yaml:"workers,omitempty"` // MaxRetries is the max retry times MaxRetries int `json:"maxRetries,omitempty" yaml:"maxRetries,omitempty"` }
func (*WatcherSpec) DeepCopy ¶
func (in *WatcherSpec) DeepCopy() *WatcherSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatcherSpec.
func (*WatcherSpec) DeepCopyInto ¶
func (in *WatcherSpec) DeepCopyInto(out *WatcherSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.