Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeChannels
- func (c *FakeChannels) Create(ctx context.Context, channel *notify.Channel, opts v1.CreateOptions) (result *notify.Channel, err error)
- func (c *FakeChannels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeChannels) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Channel, err error)
- func (c *FakeChannels) List(ctx context.Context, opts v1.ListOptions) (result *notify.ChannelList, err error)
- func (c *FakeChannels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.Channel, err error)
- func (c *FakeChannels) Update(ctx context.Context, channel *notify.Channel, opts v1.UpdateOptions) (result *notify.Channel, err error)
- func (c *FakeChannels) UpdateStatus(ctx context.Context, channel *notify.Channel, opts v1.UpdateOptions) (*notify.Channel, error)
- func (c *FakeChannels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeConfigMaps
- func (c *FakeConfigMaps) Create(ctx context.Context, configMap *notify.ConfigMap, opts v1.CreateOptions) (result *notify.ConfigMap, err error)
- func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.ConfigMap, err error)
- func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *notify.ConfigMapList, err error)
- func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.ConfigMap, err error)
- func (c *FakeConfigMaps) Update(ctx context.Context, configMap *notify.ConfigMap, opts v1.UpdateOptions) (result *notify.ConfigMap, err error)
- func (c *FakeConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMessageRequests
- func (c *FakeMessageRequests) Create(ctx context.Context, messageRequest *notify.MessageRequest, ...) (result *notify.MessageRequest, err error)
- func (c *FakeMessageRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMessageRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMessageRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.MessageRequest, err error)
- func (c *FakeMessageRequests) List(ctx context.Context, opts v1.ListOptions) (result *notify.MessageRequestList, err error)
- func (c *FakeMessageRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.MessageRequest, err error)
- func (c *FakeMessageRequests) Update(ctx context.Context, messageRequest *notify.MessageRequest, ...) (result *notify.MessageRequest, err error)
- func (c *FakeMessageRequests) UpdateStatus(ctx context.Context, messageRequest *notify.MessageRequest, ...) (*notify.MessageRequest, error)
- func (c *FakeMessageRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMessages
- func (c *FakeMessages) Create(ctx context.Context, message *notify.Message, opts v1.CreateOptions) (result *notify.Message, err error)
- func (c *FakeMessages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMessages) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Message, err error)
- func (c *FakeMessages) List(ctx context.Context, opts v1.ListOptions) (result *notify.MessageList, err error)
- func (c *FakeMessages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.Message, err error)
- func (c *FakeMessages) Update(ctx context.Context, message *notify.Message, opts v1.UpdateOptions) (result *notify.Message, err error)
- func (c *FakeMessages) UpdateStatus(ctx context.Context, message *notify.Message, opts v1.UpdateOptions) (*notify.Message, error)
- func (c *FakeMessages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNotify
- func (c *FakeNotify) Channels() internalversion.ChannelInterface
- func (c *FakeNotify) ConfigMaps() internalversion.ConfigMapInterface
- func (c *FakeNotify) MessageRequests(namespace string) internalversion.MessageRequestInterface
- func (c *FakeNotify) Messages() internalversion.MessageInterface
- func (c *FakeNotify) RESTClient() rest.Interface
- func (c *FakeNotify) ReceiverGroups() internalversion.ReceiverGroupInterface
- func (c *FakeNotify) Receivers() internalversion.ReceiverInterface
- func (c *FakeNotify) Templates(namespace string) internalversion.TemplateInterface
- type FakeReceiverGroups
- func (c *FakeReceiverGroups) Create(ctx context.Context, receiverGroup *notify.ReceiverGroup, ...) (result *notify.ReceiverGroup, err error)
- func (c *FakeReceiverGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeReceiverGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.ReceiverGroup, err error)
- func (c *FakeReceiverGroups) List(ctx context.Context, opts v1.ListOptions) (result *notify.ReceiverGroupList, err error)
- func (c *FakeReceiverGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.ReceiverGroup, err error)
- func (c *FakeReceiverGroups) Update(ctx context.Context, receiverGroup *notify.ReceiverGroup, ...) (result *notify.ReceiverGroup, err error)
- func (c *FakeReceiverGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeReceivers
- func (c *FakeReceivers) Create(ctx context.Context, receiver *notify.Receiver, opts v1.CreateOptions) (result *notify.Receiver, err error)
- func (c *FakeReceivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeReceivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Receiver, err error)
- func (c *FakeReceivers) List(ctx context.Context, opts v1.ListOptions) (result *notify.ReceiverList, err error)
- func (c *FakeReceivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.Receiver, err error)
- func (c *FakeReceivers) Update(ctx context.Context, receiver *notify.Receiver, opts v1.UpdateOptions) (result *notify.Receiver, err error)
- func (c *FakeReceivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTemplates
- func (c *FakeTemplates) Create(ctx context.Context, template *notify.Template, opts v1.CreateOptions) (result *notify.Template, err error)
- func (c *FakeTemplates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTemplates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Template, err error)
- func (c *FakeTemplates) List(ctx context.Context, opts v1.ListOptions) (result *notify.TemplateList, err error)
- func (c *FakeTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *notify.Template, err error)
- func (c *FakeTemplates) Update(ctx context.Context, template *notify.Template, opts v1.UpdateOptions) (result *notify.Template, err error)
- func (c *FakeTemplates) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeChannels ¶
type FakeChannels struct {
Fake *FakeNotify
}
FakeChannels implements ChannelInterface
func (*FakeChannels) Create ¶
func (c *FakeChannels) Create(ctx context.Context, channel *notify.Channel, opts v1.CreateOptions) (result *notify.Channel, err error)
Create takes the representation of a channel and creates it. Returns the server's representation of the channel, and an error, if there is any.
func (*FakeChannels) Delete ¶
func (c *FakeChannels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the channel and deletes it. Returns an error if one occurs.
func (*FakeChannels) Get ¶
func (c *FakeChannels) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Channel, err error)
Get takes name of the channel, and returns the corresponding channel object, and an error if there is any.
func (*FakeChannels) List ¶
func (c *FakeChannels) List(ctx context.Context, opts v1.ListOptions) (result *notify.ChannelList, err error)
List takes label and field selectors, and returns the list of Channels that match those selectors.
func (*FakeChannels) Patch ¶
func (c *FakeChannels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.Channel, err error)
Patch applies the patch and returns the patched channel.
func (*FakeChannels) Update ¶
func (c *FakeChannels) Update(ctx context.Context, channel *notify.Channel, opts v1.UpdateOptions) (result *notify.Channel, err error)
Update takes the representation of a channel and updates it. Returns the server's representation of the channel, and an error, if there is any.
func (*FakeChannels) UpdateStatus ¶
func (c *FakeChannels) UpdateStatus(ctx context.Context, channel *notify.Channel, opts v1.UpdateOptions) (*notify.Channel, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeChannels) Watch ¶
func (c *FakeChannels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested channels.
type FakeConfigMaps ¶
type FakeConfigMaps struct {
Fake *FakeNotify
}
FakeConfigMaps implements ConfigMapInterface
func (*FakeConfigMaps) Create ¶
func (c *FakeConfigMaps) Create(ctx context.Context, configMap *notify.ConfigMap, opts v1.CreateOptions) (result *notify.ConfigMap, err error)
Create takes the representation of a configMap and creates it. Returns the server's representation of the configMap, and an error, if there is any.
func (*FakeConfigMaps) Delete ¶
func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the configMap and deletes it. Returns an error if one occurs.
func (*FakeConfigMaps) Get ¶
func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.ConfigMap, err error)
Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any.
func (*FakeConfigMaps) List ¶
func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *notify.ConfigMapList, err error)
List takes label and field selectors, and returns the list of ConfigMaps that match those selectors.
func (*FakeConfigMaps) Patch ¶
func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.ConfigMap, err error)
Patch applies the patch and returns the patched configMap.
func (*FakeConfigMaps) Update ¶
func (c *FakeConfigMaps) Update(ctx context.Context, configMap *notify.ConfigMap, opts v1.UpdateOptions) (result *notify.ConfigMap, err error)
Update takes the representation of a configMap and updates it. Returns the server's representation of the configMap, and an error, if there is any.
func (*FakeConfigMaps) Watch ¶
func (c *FakeConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested configMaps.
type FakeMessageRequests ¶
type FakeMessageRequests struct { Fake *FakeNotify // contains filtered or unexported fields }
FakeMessageRequests implements MessageRequestInterface
func (*FakeMessageRequests) Create ¶
func (c *FakeMessageRequests) Create(ctx context.Context, messageRequest *notify.MessageRequest, opts v1.CreateOptions) (result *notify.MessageRequest, err error)
Create takes the representation of a messageRequest and creates it. Returns the server's representation of the messageRequest, and an error, if there is any.
func (*FakeMessageRequests) Delete ¶
func (c *FakeMessageRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the messageRequest and deletes it. Returns an error if one occurs.
func (*FakeMessageRequests) DeleteCollection ¶
func (c *FakeMessageRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMessageRequests) Get ¶
func (c *FakeMessageRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.MessageRequest, err error)
Get takes name of the messageRequest, and returns the corresponding messageRequest object, and an error if there is any.
func (*FakeMessageRequests) List ¶
func (c *FakeMessageRequests) List(ctx context.Context, opts v1.ListOptions) (result *notify.MessageRequestList, err error)
List takes label and field selectors, and returns the list of MessageRequests that match those selectors.
func (*FakeMessageRequests) Patch ¶
func (c *FakeMessageRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.MessageRequest, err error)
Patch applies the patch and returns the patched messageRequest.
func (*FakeMessageRequests) Update ¶
func (c *FakeMessageRequests) Update(ctx context.Context, messageRequest *notify.MessageRequest, opts v1.UpdateOptions) (result *notify.MessageRequest, err error)
Update takes the representation of a messageRequest and updates it. Returns the server's representation of the messageRequest, and an error, if there is any.
func (*FakeMessageRequests) UpdateStatus ¶
func (c *FakeMessageRequests) UpdateStatus(ctx context.Context, messageRequest *notify.MessageRequest, opts v1.UpdateOptions) (*notify.MessageRequest, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMessageRequests) Watch ¶
func (c *FakeMessageRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested messageRequests.
type FakeMessages ¶
type FakeMessages struct {
Fake *FakeNotify
}
FakeMessages implements MessageInterface
func (*FakeMessages) Create ¶
func (c *FakeMessages) Create(ctx context.Context, message *notify.Message, opts v1.CreateOptions) (result *notify.Message, err error)
Create takes the representation of a message and creates it. Returns the server's representation of the message, and an error, if there is any.
func (*FakeMessages) Delete ¶
func (c *FakeMessages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the message and deletes it. Returns an error if one occurs.
func (*FakeMessages) Get ¶
func (c *FakeMessages) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Message, err error)
Get takes name of the message, and returns the corresponding message object, and an error if there is any.
func (*FakeMessages) List ¶
func (c *FakeMessages) List(ctx context.Context, opts v1.ListOptions) (result *notify.MessageList, err error)
List takes label and field selectors, and returns the list of Messages that match those selectors.
func (*FakeMessages) Patch ¶
func (c *FakeMessages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.Message, err error)
Patch applies the patch and returns the patched message.
func (*FakeMessages) Update ¶
func (c *FakeMessages) Update(ctx context.Context, message *notify.Message, opts v1.UpdateOptions) (result *notify.Message, err error)
Update takes the representation of a message and updates it. Returns the server's representation of the message, and an error, if there is any.
func (*FakeMessages) UpdateStatus ¶
func (c *FakeMessages) UpdateStatus(ctx context.Context, message *notify.Message, opts v1.UpdateOptions) (*notify.Message, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMessages) Watch ¶
func (c *FakeMessages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested messages.
type FakeNotify ¶
func (*FakeNotify) Channels ¶
func (c *FakeNotify) Channels() internalversion.ChannelInterface
func (*FakeNotify) ConfigMaps ¶
func (c *FakeNotify) ConfigMaps() internalversion.ConfigMapInterface
func (*FakeNotify) MessageRequests ¶
func (c *FakeNotify) MessageRequests(namespace string) internalversion.MessageRequestInterface
func (*FakeNotify) Messages ¶
func (c *FakeNotify) Messages() internalversion.MessageInterface
func (*FakeNotify) RESTClient ¶
func (c *FakeNotify) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeNotify) ReceiverGroups ¶
func (c *FakeNotify) ReceiverGroups() internalversion.ReceiverGroupInterface
func (*FakeNotify) Receivers ¶
func (c *FakeNotify) Receivers() internalversion.ReceiverInterface
func (*FakeNotify) Templates ¶
func (c *FakeNotify) Templates(namespace string) internalversion.TemplateInterface
type FakeReceiverGroups ¶
type FakeReceiverGroups struct {
Fake *FakeNotify
}
FakeReceiverGroups implements ReceiverGroupInterface
func (*FakeReceiverGroups) Create ¶
func (c *FakeReceiverGroups) Create(ctx context.Context, receiverGroup *notify.ReceiverGroup, opts v1.CreateOptions) (result *notify.ReceiverGroup, err error)
Create takes the representation of a receiverGroup and creates it. Returns the server's representation of the receiverGroup, and an error, if there is any.
func (*FakeReceiverGroups) Delete ¶
func (c *FakeReceiverGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the receiverGroup and deletes it. Returns an error if one occurs.
func (*FakeReceiverGroups) Get ¶
func (c *FakeReceiverGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.ReceiverGroup, err error)
Get takes name of the receiverGroup, and returns the corresponding receiverGroup object, and an error if there is any.
func (*FakeReceiverGroups) List ¶
func (c *FakeReceiverGroups) List(ctx context.Context, opts v1.ListOptions) (result *notify.ReceiverGroupList, err error)
List takes label and field selectors, and returns the list of ReceiverGroups that match those selectors.
func (*FakeReceiverGroups) Patch ¶
func (c *FakeReceiverGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.ReceiverGroup, err error)
Patch applies the patch and returns the patched receiverGroup.
func (*FakeReceiverGroups) Update ¶
func (c *FakeReceiverGroups) Update(ctx context.Context, receiverGroup *notify.ReceiverGroup, opts v1.UpdateOptions) (result *notify.ReceiverGroup, err error)
Update takes the representation of a receiverGroup and updates it. Returns the server's representation of the receiverGroup, and an error, if there is any.
func (*FakeReceiverGroups) Watch ¶
func (c *FakeReceiverGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested receiverGroups.
type FakeReceivers ¶
type FakeReceivers struct {
Fake *FakeNotify
}
FakeReceivers implements ReceiverInterface
func (*FakeReceivers) Create ¶
func (c *FakeReceivers) Create(ctx context.Context, receiver *notify.Receiver, opts v1.CreateOptions) (result *notify.Receiver, err error)
Create takes the representation of a receiver and creates it. Returns the server's representation of the receiver, and an error, if there is any.
func (*FakeReceivers) Delete ¶
func (c *FakeReceivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the receiver and deletes it. Returns an error if one occurs.
func (*FakeReceivers) Get ¶
func (c *FakeReceivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Receiver, err error)
Get takes name of the receiver, and returns the corresponding receiver object, and an error if there is any.
func (*FakeReceivers) List ¶
func (c *FakeReceivers) List(ctx context.Context, opts v1.ListOptions) (result *notify.ReceiverList, err error)
List takes label and field selectors, and returns the list of Receivers that match those selectors.
func (*FakeReceivers) Patch ¶
func (c *FakeReceivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.Receiver, err error)
Patch applies the patch and returns the patched receiver.
func (*FakeReceivers) Update ¶
func (c *FakeReceivers) Update(ctx context.Context, receiver *notify.Receiver, opts v1.UpdateOptions) (result *notify.Receiver, err error)
Update takes the representation of a receiver and updates it. Returns the server's representation of the receiver, and an error, if there is any.
func (*FakeReceivers) Watch ¶
func (c *FakeReceivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested receivers.
type FakeTemplates ¶
type FakeTemplates struct { Fake *FakeNotify // contains filtered or unexported fields }
FakeTemplates implements TemplateInterface
func (*FakeTemplates) Create ¶
func (c *FakeTemplates) Create(ctx context.Context, template *notify.Template, opts v1.CreateOptions) (result *notify.Template, err error)
Create takes the representation of a template and creates it. Returns the server's representation of the template, and an error, if there is any.
func (*FakeTemplates) Delete ¶
func (c *FakeTemplates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the template and deletes it. Returns an error if one occurs.
func (*FakeTemplates) DeleteCollection ¶
func (c *FakeTemplates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTemplates) Get ¶
func (c *FakeTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *notify.Template, err error)
Get takes name of the template, and returns the corresponding template object, and an error if there is any.
func (*FakeTemplates) List ¶
func (c *FakeTemplates) List(ctx context.Context, opts v1.ListOptions) (result *notify.TemplateList, err error)
List takes label and field selectors, and returns the list of Templates that match those selectors.
func (*FakeTemplates) Patch ¶
func (c *FakeTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *notify.Template, err error)
Patch applies the patch and returns the patched template.
func (*FakeTemplates) Update ¶
func (c *FakeTemplates) Update(ctx context.Context, template *notify.Template, opts v1.UpdateOptions) (result *notify.Template, err error)
Update takes the representation of a template and updates it. Returns the server's representation of the template, and an error, if there is any.
func (*FakeTemplates) Watch ¶
func (c *FakeTemplates) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested templates.