v1alpha1

package
v0.0.0-...-cdcf638 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+groupName=messenger.appscode.com

Index

Constants

View Source
const (
	ResourceKindMessagingService = "MessagingService"
	ResourceMessagingService     = "messagingservice"
	ResourceMessagingServices    = "messagingservices"

	ResourceKindMessage = "Message"
	ResourceMessage     = "message"
	ResourceMessages    = "messages"
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	EnableStatusSubresource bool
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: messenger.GroupName, Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Message

type Message struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MessageSpec   `json:"spec,omitempty"`
	Status            MessageStatus `json:"status,omitempty"`
}

func (Message) CustomResourceDefinition

func (p Message) CustomResourceDefinition() *crd_api.CustomResourceDefinition

func (*Message) DeepCopy

func (in *Message) DeepCopy() *Message

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Message.

func (*Message) DeepCopyInto

func (in *Message) DeepCopyInto(out *Message)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Message) DeepCopyObject

func (in *Message) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (Message) IsValid

func (p Message) IsValid() error

type MessageList

type MessageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Notification TPR objects
	Items []Message `json:"items,omitempty"`
}

func (*MessageList) DeepCopy

func (in *MessageList) DeepCopy() *MessageList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessageList.

func (*MessageList) DeepCopyInto

func (in *MessageList) DeepCopyInto(out *MessageList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MessageList) DeepCopyObject

func (in *MessageList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MessageSpec

type MessageSpec struct {
	Service string `json:"service,omitempty"`
	Message string `json:"message,omitempty"`
	Email   string `json:"email,omitempty"`
	Chat    string `json:"chat,omitempty"`
	Sms     string `json:"sms,omitempty"`
}

func (*MessageSpec) DeepCopy

func (in *MessageSpec) DeepCopy() *MessageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessageSpec.

func (*MessageSpec) DeepCopyInto

func (in *MessageSpec) DeepCopyInto(out *MessageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MessageStatus

type MessageStatus struct {
	SentTimestamp *metav1.Time `json:"sentTimestamp,omitempty"`
	ErrorMessage  string       `json:"errorMessage,omitempty"`
}

func (*MessageStatus) DeepCopy

func (in *MessageStatus) DeepCopy() *MessageStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessageStatus.

func (*MessageStatus) DeepCopyInto

func (in *MessageStatus) DeepCopyInto(out *MessageStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MessagingService

type MessagingService struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MessagingServiceSpec `json:"spec,omitempty"`
}

Notifier defines a Notifier database.

func (MessagingService) CustomResourceDefinition

func (p MessagingService) CustomResourceDefinition() *crd_api.CustomResourceDefinition

func (*MessagingService) DeepCopy

func (in *MessagingService) DeepCopy() *MessagingService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessagingService.

func (*MessagingService) DeepCopyInto

func (in *MessagingService) DeepCopyInto(out *MessagingService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MessagingService) DeepCopyObject

func (in *MessagingService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (MessagingService) IsValid

func (p MessagingService) IsValid() error

type MessagingServiceList

type MessagingServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MessagingService TPR objects
	Items []MessagingService `json:"items,omitempty"`
}

func (*MessagingServiceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessagingServiceList.

func (*MessagingServiceList) DeepCopyInto

func (in *MessagingServiceList) DeepCopyInto(out *MessagingServiceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MessagingServiceList) DeepCopyObject

func (in *MessagingServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MessagingServiceSpec

type MessagingServiceSpec struct {
	// Number of instances to deploy for a Notifier database.
	Replicas *int32 `json:"replicas,omitempty"`

	// To whom notification will be sent
	To []string `json:"to,omitempty"`

	// How this notification will be sent
	Drive string `json:"drive,omitempty"`

	// Secret name to which credential data is provided to send notification
	CredentialSecretName string `json:"credentialSecretName,omitempty"`
}

func (*MessagingServiceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MessagingServiceSpec.

func (*MessagingServiceSpec) DeepCopyInto

func (in *MessagingServiceSpec) DeepCopyInto(out *MessagingServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL