Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=gateway.n3wscott.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type GitHub
- func (in *GitHub) DeepCopy() *GitHub
- func (in *GitHub) DeepCopyInto(out *GitHub)
- func (in *GitHub) DeepCopyObject() runtime.Object
- func (s *GitHub) GetGroupVersionKind() schema.GroupVersionKind
- func (in *GitHub) SetDefaults(context.Context)
- func (in *GitHub) Validate(context.Context) *apis.FieldError
- type GitHubList
- type GitHubOrganization
- type GitHubRepositories
- type GitHubRepository
- type GitHubSpec
- type GitHubStatus
- func (in *GitHubStatus) DeepCopy() *GitHubStatus
- func (in *GitHubStatus) DeepCopyInto(out *GitHubStatus)
- func (s *GitHubStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (s *GitHubStatus) InitializeConditions()
- func (s *GitHubStatus) IsReady() bool
- func (ss *GitHubStatus) MarkAddress(url *apis.URL)
- func (s *GitHubStatus) MarkNoAddress(reason, messageFormat string, messageA ...interface{})
- func (s *GitHubStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
- func (s *GitHubStatus) MarkSink(uri *apis.URL)
- func (s *GitHubStatus) MarkSinkWarnRefDeprecated(uri *apis.URL)
- func (s *GitHubStatus) MarkUnknownOrganization(messageFormat string, messageA ...interface{})
- func (ss *GitHubStatus) MarkValidOrganization()
- type SlackChannel
- type SlackChannels
- type SlackIM
- type SlackIMs
- type SlackTeamInfo
- type Slackbot
- func (in *Slackbot) DeepCopy() *Slackbot
- func (in *Slackbot) DeepCopyInto(out *Slackbot)
- func (in *Slackbot) DeepCopyObject() runtime.Object
- func (s *Slackbot) GetGroupVersionKind() schema.GroupVersionKind
- func (in *Slackbot) SetDefaults(context.Context)
- func (in *Slackbot) Validate(context.Context) *apis.FieldError
- type SlackbotList
- type SlackbotSpec
- type SlackbotStatus
- func (in *SlackbotStatus) DeepCopy() *SlackbotStatus
- func (in *SlackbotStatus) DeepCopyInto(out *SlackbotStatus)
- func (s *SlackbotStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (s *SlackbotStatus) InitializeConditions()
- func (s *SlackbotStatus) IsReady() bool
- func (ss *SlackbotStatus) MarkAddress(url *apis.URL)
- func (s *SlackbotStatus) MarkNoAddress(reason, messageFormat string, messageA ...interface{})
- func (s *SlackbotStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
- func (s *SlackbotStatus) MarkSink(uri *apis.URL)
Constants ¶
const ( // GitHubConditionReady has status True when the GitHub is ready to send events. GitHubConditionReady = apis.ConditionReady // GitHubConditionSinkProvided has status True when the GitHub has been configured with a sink target. GitHubConditionSinkProvided apis.ConditionType = "SinkProvided" // GitHubConditionAddressable has status True when there is a service for posting to. GitHubConditionAddressable apis.ConditionType = "Addressable" GitHubConditionOrganization apis.ConditionType = "Organization" )
const ( // SlackbotConditionReady has status True when the Slackbot is ready to send events. SlackbotConditionReady = apis.ConditionReady // SlackbotConditionSinkProvided has status True when the Slackbot has been configured with a sink target. SlackbotConditionSinkProvided apis.ConditionType = "SinkProvided" // SlackbotConditionAddressable has status True when there is a service for posting to. SlackbotConditionAddressable apis.ConditionType = "Addressable" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: gateway.GroupName, 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 GitHub ¶
type GitHub struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the GitHub (from the client). Spec GitHubSpec `json:"spec"` // Status communicates the observed state of the GitHub (from the controller). // +optional Status GitHubStatus `json:"status,omitempty"` }
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*GitHub) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHub.
func (*GitHub) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHub) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GitHub) GetGroupVersionKind ¶
func (s *GitHub) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns the GroupVersionKind.
type GitHubList ¶
type GitHubList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []GitHub `json:"items"` }
GitHubList is a list of GitHub resources
func (*GitHubList) DeepCopy ¶
func (in *GitHubList) DeepCopy() *GitHubList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubList.
func (*GitHubList) DeepCopyInto ¶
func (in *GitHubList) DeepCopyInto(out *GitHubList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHubList) DeepCopyObject ¶
func (in *GitHubList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitHubOrganization ¶
type GitHubOrganization struct { Name string `json:"name,omitempty"` ID int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` Avatar *apis.URL `json:"avatar,omitempty"` URL *apis.URL `json:"url,omitempty"` Email string `json:"email,omitempty"` Type string `json:"type,omitempty"` // Organization, User or Error }
func (*GitHubOrganization) DeepCopy ¶
func (in *GitHubOrganization) DeepCopy() *GitHubOrganization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubOrganization.
func (*GitHubOrganization) DeepCopyInto ¶
func (in *GitHubOrganization) DeepCopyInto(out *GitHubOrganization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubRepositories ¶
type GitHubRepositories []GitHubRepository
func (GitHubRepositories) DeepCopy ¶
func (in GitHubRepositories) DeepCopy() GitHubRepositories
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubRepositories.
func (GitHubRepositories) DeepCopyInto ¶
func (in GitHubRepositories) DeepCopyInto(out *GitHubRepositories)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubRepository ¶
type GitHubRepository struct { ID int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Branch string `json:"branch,omitempty"` // default branch URL *apis.URL `json:"url,omitempty"` GitURL *apis.URL `json:"gitUrl,omitempty"` }
func (*GitHubRepository) DeepCopy ¶
func (in *GitHubRepository) DeepCopy() *GitHubRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubRepository.
func (*GitHubRepository) DeepCopyInto ¶
func (in *GitHubRepository) DeepCopyInto(out *GitHubRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubSpec ¶
type GitHubSpec struct { // inherits duck/v1 SourceSpec, which currently provides: // * Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // * CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` // +required Organization string `json:"org"` // +optional Repositories []string `json:"repos,omitempty"` }
GitHubSpec holds the desired state of the GitHub (from the client).
func (*GitHubSpec) DeepCopy ¶
func (in *GitHubSpec) DeepCopy() *GitHubSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubSpec.
func (*GitHubSpec) DeepCopyInto ¶
func (in *GitHubSpec) DeepCopyInto(out *GitHubSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubStatus ¶
type GitHubStatus struct { // inherits duck/v1 SourceStatus, which currently provides: // * ObservedGeneration - the 'Generation' of the Service that was last // processed by the controller. // * Conditions - the latest available observations of a resource's current // state. // * SinkURI - the current active sink URI that has been configured for the // Source. duckv1.SourceStatus `json:",inline"` // AddressStatus is the part where the GitHub fulfills the Addressable contract. duckv1.AddressStatus `json:",inline"` Organization *GitHubOrganization `json:"org,omitempty"` Repositories GitHubRepositories `json:"repos,omitempty"` }
GitHubStatus communicates the observed state of the GitHub (from the controller).
func (*GitHubStatus) DeepCopy ¶
func (in *GitHubStatus) DeepCopy() *GitHubStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubStatus.
func (*GitHubStatus) DeepCopyInto ¶
func (in *GitHubStatus) DeepCopyInto(out *GitHubStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHubStatus) GetCondition ¶
func (s *GitHubStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*GitHubStatus) InitializeConditions ¶
func (s *GitHubStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*GitHubStatus) IsReady ¶
func (s *GitHubStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*GitHubStatus) MarkAddress ¶
func (ss *GitHubStatus) MarkAddress(url *apis.URL)
func (*GitHubStatus) MarkNoAddress ¶
func (s *GitHubStatus) MarkNoAddress(reason, messageFormat string, messageA ...interface{})
MarkNoSink sets the condition that the source does not have a sink configured.
func (*GitHubStatus) MarkNoSink ¶
func (s *GitHubStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
MarkNoSink sets the condition that the source does not have a sink configured.
func (*GitHubStatus) MarkSink ¶
func (s *GitHubStatus) MarkSink(uri *apis.URL)
MarkSink sets the condition that the source has a sink configured.
func (*GitHubStatus) MarkSinkWarnRefDeprecated ¶
func (s *GitHubStatus) MarkSinkWarnRefDeprecated(uri *apis.URL)
MarkSinkWarnDeprecated sets the condition that the source has a sink configured and warns ref is deprecated.
func (*GitHubStatus) MarkUnknownOrganization ¶
func (s *GitHubStatus) MarkUnknownOrganization(messageFormat string, messageA ...interface{})
func (*GitHubStatus) MarkValidOrganization ¶
func (ss *GitHubStatus) MarkValidOrganization()
type SlackChannel ¶
type SlackChannel struct { Name string `json:"name,omitempty"` ID string `json:"id,omitempty"` IsMember bool `json:"isMember,omitempty"` }
+k8s:deepcopy-gen=true
func (*SlackChannel) DeepCopy ¶
func (in *SlackChannel) DeepCopy() *SlackChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackChannel.
func (*SlackChannel) DeepCopyInto ¶
func (in *SlackChannel) DeepCopyInto(out *SlackChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackChannels ¶
type SlackChannels []SlackChannel
+k8s:deepcopy-gen=true
func (SlackChannels) DeepCopy ¶
func (in SlackChannels) DeepCopy() SlackChannels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackChannels.
func (SlackChannels) DeepCopyInto ¶
func (in SlackChannels) DeepCopyInto(out *SlackChannels)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackIM ¶
+k8s:deepcopy-gen=true
func (*SlackIM) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackIM.
func (*SlackIM) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackIMs ¶
type SlackIMs []SlackIM
+k8s:deepcopy-gen=true
func (SlackIMs) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackIMs.
func (SlackIMs) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackTeamInfo ¶
type SlackTeamInfo struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` URL *apis.URL `json:"domain,omitempty"` }
+k8s:deepcopy-gen=true
func (*SlackTeamInfo) DeepCopy ¶
func (in *SlackTeamInfo) DeepCopy() *SlackTeamInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackTeamInfo.
func (*SlackTeamInfo) DeepCopyInto ¶
func (in *SlackTeamInfo) DeepCopyInto(out *SlackTeamInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Slackbot ¶
type Slackbot struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Slackbot (from the client). Spec SlackbotSpec `json:"spec"` // Status communicates the observed state of the Slackbot (from the controller). // +optional Status SlackbotStatus `json:"status,omitempty"` }
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*Slackbot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Slackbot.
func (*Slackbot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Slackbot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Slackbot) GetGroupVersionKind ¶
func (s *Slackbot) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns the GroupVersionKind.
type SlackbotList ¶
type SlackbotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Slackbot `json:"items"` }
SlackbotList is a list of Slackbot resources
func (*SlackbotList) DeepCopy ¶
func (in *SlackbotList) DeepCopy() *SlackbotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackbotList.
func (*SlackbotList) DeepCopyInto ¶
func (in *SlackbotList) DeepCopyInto(out *SlackbotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SlackbotList) DeepCopyObject ¶
func (in *SlackbotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SlackbotSpec ¶
type SlackbotSpec struct { // inherits duck/v1 SourceSpec, which currently provides: // * Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // * CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` }
SlackbotSpec holds the desired state of the Slackbot (from the client).
func (*SlackbotSpec) DeepCopy ¶
func (in *SlackbotSpec) DeepCopy() *SlackbotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackbotSpec.
func (*SlackbotSpec) DeepCopyInto ¶
func (in *SlackbotSpec) DeepCopyInto(out *SlackbotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackbotStatus ¶
type SlackbotStatus struct { // inherits duck/v1 SourceStatus, which currently provides: // * ObservedGeneration - the 'Generation' of the Service that was last // processed by the controller. // * Conditions - the latest available observations of a resource's current // state. // * SinkURI - the current active sink URI that has been configured for the // Source. duckv1.SourceStatus `json:",inline"` // AddressStatus is the part where the Slackbot fulfills the Addressable contract. duckv1.AddressStatus `json:",inline"` Team *SlackTeamInfo `json:"team,omitempty"` Channels SlackChannels `json:"channels,omitempty"` IMs SlackIMs `json:"ims,omitempty"` }
SlackbotStatus communicates the observed state of the Slackbot (from the controller).
func (*SlackbotStatus) DeepCopy ¶
func (in *SlackbotStatus) DeepCopy() *SlackbotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackbotStatus.
func (*SlackbotStatus) DeepCopyInto ¶
func (in *SlackbotStatus) DeepCopyInto(out *SlackbotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SlackbotStatus) GetCondition ¶
func (s *SlackbotStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*SlackbotStatus) InitializeConditions ¶
func (s *SlackbotStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*SlackbotStatus) IsReady ¶
func (s *SlackbotStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*SlackbotStatus) MarkAddress ¶
func (ss *SlackbotStatus) MarkAddress(url *apis.URL)
func (*SlackbotStatus) MarkNoAddress ¶
func (s *SlackbotStatus) MarkNoAddress(reason, messageFormat string, messageA ...interface{})
MarkNoSink sets the condition that the source does not have a sink configured.
func (*SlackbotStatus) MarkNoSink ¶
func (s *SlackbotStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
MarkNoSink sets the condition that the source does not have a sink configured.
func (*SlackbotStatus) MarkSink ¶
func (s *SlackbotStatus) MarkSink(uri *apis.URL)
MarkSink sets the condition that the source has a sink configured.