v1alpha1

package
v0.0.0-...-287d054 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=gateway.n3wscott.com

Index

Constants

View Source
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"
)
View Source
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

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: gateway.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *GitHub) DeepCopy() *GitHub

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

func (*GitHub) DeepCopyInto

func (in *GitHub) DeepCopyInto(out *GitHub)

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

func (*GitHub) DeepCopyObject

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

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.

func (*GitHub) SetDefaults

func (in *GitHub) SetDefaults(context.Context)

TODO: implement

func (*GitHub) Validate

func (in *GitHub) Validate(context.Context) *apis.FieldError

TODO: implement

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

type SlackIM struct {
	ID   string `json:"id,omitempty"`
	With string `json:"with,omitempty"`
}

+k8s:deepcopy-gen=true

func (*SlackIM) DeepCopy

func (in *SlackIM) DeepCopy() *SlackIM

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

func (*SlackIM) DeepCopyInto

func (in *SlackIM) DeepCopyInto(out *SlackIM)

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

func (in SlackIMs) DeepCopy() SlackIMs

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

func (SlackIMs) DeepCopyInto

func (in SlackIMs) DeepCopyInto(out *SlackIMs)

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

func (in *Slackbot) DeepCopy() *Slackbot

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

func (*Slackbot) DeepCopyInto

func (in *Slackbot) DeepCopyInto(out *Slackbot)

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

func (*Slackbot) DeepCopyObject

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

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.

func (*Slackbot) SetDefaults

func (in *Slackbot) SetDefaults(context.Context)

TODO: implement

func (*Slackbot) Validate

func (in *Slackbot) Validate(context.Context) *apis.FieldError

TODO: implement

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.

Jump to

Keyboard shortcuts

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