Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=line.you
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Binding
- type Bot
- type BotExpose
- type BotExposeType
- type BotList
- type BotPhase
- type BotSpec
- type BotStatus
- type Event
- type EventBinding
- type EventBindingList
- type EventBindingSubset
- type EventList
- type EventSpec
- type Message
Constants ¶
const ( CustomResourceGroup = "line.you" Version = "v1alpha1" )
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: line.GroupName, Version: Version}
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 Binding ¶
type Binding struct { Name string `json:"name"` Type linebot.EventType `json:"type"` Messages []Message `json:"messages"` }
func (*Binding) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding.
func (*Binding) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Bot ¶
type Bot struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec BotSpec `json:"spec"` Status BotStatus `json:"status,omitempty"` }
func (*Bot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bot.
func (*Bot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Bot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BotExpose ¶
type BotExpose struct { Type BotExposeType `json:"type"` DomainName string `json:"domainName"` LoadBalanceIPs []string `json:"loadBalanceIPs,omitempty"` NgrokToken string `json:"ngrokToken"` }
func (*BotExpose) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BotExpose.
func (*BotExpose) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BotExposeType ¶
type BotExposeType string
const ( NgrokExpose BotExposeType = "Ngrok" IngressExpose BotExposeType = "Ingress" LoadBalancerExpose BotExposeType = "LoadBalancer" )
type BotList ¶
type BotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Bot `json:"items"` }
func (*BotList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BotList.
func (*BotList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BotList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BotSpec ¶
type BotSpec struct { Selector *metav1.LabelSelector `json:"selector"` ChannelSecretName string `json:"channelSecretName"` Expose BotExpose `json:"expose"` Version string `json:"version"` LogLevel int `json:"logLevel"` }
func (*BotSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BotSpec.
func (*BotSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BotStatus ¶
type BotStatus struct { Phase BotPhase `json:"phase"` Reason string `json:"reason,omitempty"` LastUpdateTime metav1.Time `json:"lastUpdateTime"` }
func (*BotStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BotStatus.
func (*BotStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Event ¶
type Event struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec EventSpec `json:"spec"` }
func (*Event) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (*Event) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Event) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventBinding ¶
type EventBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Subsets []EventBindingSubset `json:"subsets,omitempty"` }
func (*EventBinding) DeepCopy ¶
func (in *EventBinding) DeepCopy() *EventBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBinding.
func (*EventBinding) DeepCopyInto ¶
func (in *EventBinding) DeepCopyInto(out *EventBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventBinding) DeepCopyObject ¶
func (in *EventBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventBindingList ¶
type EventBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []EventBinding `json:"items"` }
func (*EventBindingList) DeepCopy ¶
func (in *EventBindingList) DeepCopy() *EventBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBindingList.
func (*EventBindingList) DeepCopyInto ¶
func (in *EventBindingList) DeepCopyInto(out *EventBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventBindingList) DeepCopyObject ¶
func (in *EventBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventBindingSubset ¶
type EventBindingSubset struct {
Binding Binding `json:"binding,omitempty"`
}
func (*EventBindingSubset) DeepCopy ¶
func (in *EventBindingSubset) DeepCopy() *EventBindingSubset
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBindingSubset.
func (*EventBindingSubset) DeepCopyInto ¶
func (in *EventBindingSubset) DeepCopyInto(out *EventBindingSubset)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventList ¶
type EventList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Event `json:"items"` }
func (*EventList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
func (*EventList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventSpec ¶
type EventSpec struct { Selector *metav1.LabelSelector `json:"selector"` Type linebot.EventType `json:"type"` Messages []Message `json:"messages"` }
func (*EventSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec.
func (*EventSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Message ¶
type Message struct { Type linebot.MessageType `json:"type"` Keywords []string `json:"keywords,omitempty"` Reply string `json:"reply"` }
func (*Message) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Message.
func (*Message) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.