v1alpha1

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the osf2f v1alpha1 API group +kubebuilder:object:generate=true +groupName=osf2f.my.domain

Index

Constants

View Source
const LabelAuthorName = "author.name"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "osf2f.my.domain", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Author

type Author struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AuthorSpec   `json:"spec,omitempty"`
	Status AuthorStatus `json:"status,omitempty"`
}

Author is the Schema for the authors API

func (*Author) DeepCopy

func (in *Author) DeepCopy() *Author

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

func (*Author) DeepCopyInto

func (in *Author) DeepCopyInto(out *Author)

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

func (*Author) DeepCopyObject

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

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

type AuthorList

type AuthorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Author `json:"items"`
}

AuthorList contains a list of Author

func (*AuthorList) DeepCopy

func (in *AuthorList) DeepCopy() *AuthorList

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

func (*AuthorList) DeepCopyInto

func (in *AuthorList) DeepCopyInto(out *AuthorList)

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

func (*AuthorList) DeepCopyObject

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

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

type AuthorSpec

type AuthorSpec struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description"`
}

AuthorSpec defines the desired state of Author

func (*AuthorSpec) DeepCopy

func (in *AuthorSpec) DeepCopy() *AuthorSpec

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

func (*AuthorSpec) DeepCopyInto

func (in *AuthorSpec) DeepCopyInto(out *AuthorSpec)

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

type AuthorStatus

type AuthorStatus struct {
}

AuthorStatus defines the observed state of Author

func (*AuthorStatus) DeepCopy

func (in *AuthorStatus) DeepCopy() *AuthorStatus

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

func (*AuthorStatus) DeepCopyInto

func (in *AuthorStatus) DeepCopyInto(out *AuthorStatus)

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

type Category

type Category struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CategorySpec   `json:"spec,omitempty"`
	Status CategoryStatus `json:"status,omitempty"`
}

Category is the Schema for the categories API

func (*Category) DeepCopy

func (in *Category) DeepCopy() *Category

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

func (*Category) DeepCopyInto

func (in *Category) DeepCopyInto(out *Category)

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

func (*Category) DeepCopyObject

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

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

type CategoryList

type CategoryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Category `json:"items"`
}

CategoryList contains a list of Category

func (*CategoryList) DeepCopy

func (in *CategoryList) DeepCopy() *CategoryList

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

func (*CategoryList) DeepCopyInto

func (in *CategoryList) DeepCopyInto(out *CategoryList)

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

func (*CategoryList) DeepCopyObject

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

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

type CategorySpec

type CategorySpec struct {
	// Description is the description of Category
	Description string `json:"foo,omitempty"`
}

CategorySpec defines the desired state of Category

func (*CategorySpec) DeepCopy

func (in *CategorySpec) DeepCopy() *CategorySpec

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

func (*CategorySpec) DeepCopyInto

func (in *CategorySpec) DeepCopyInto(out *CategorySpec)

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

type CategoryStatus

type CategoryStatus struct {
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

CategoryStatus defines the observed state of Category

func (*CategoryStatus) DeepCopy

func (in *CategoryStatus) DeepCopy() *CategoryStatus

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

func (*CategoryStatus) DeepCopyInto

func (in *CategoryStatus) DeepCopyInto(out *CategoryStatus)

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

type Episode

type Episode struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   EpisodeSpec   `json:"spec,omitempty"`
	Status EpisodeStatus `json:"status,omitempty"`
}

Episode is the Schema for the episodes API

func (*Episode) DeepCopy

func (in *Episode) DeepCopy() *Episode

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

func (*Episode) DeepCopyInto

func (in *Episode) DeepCopyInto(out *Episode)

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

func (*Episode) DeepCopyObject

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

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

type EpisodeList

type EpisodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Episode `json:"items"`
}

EpisodeList contains a list of Episode

func (*EpisodeList) DeepCopy

func (in *EpisodeList) DeepCopy() *EpisodeList

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

func (*EpisodeList) DeepCopyInto

func (in *EpisodeList) DeepCopyInto(out *EpisodeList)

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

func (*EpisodeList) DeepCopyObject

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

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

type EpisodeSpec

type EpisodeSpec struct {
	Title       string `json:"title,omitempty"`
	Summary     string `json:"summary,omitempty"`
	Content     string `json:"content,omitempty"`
	CoverImage  string `json:"coverImage,omitempty"`
	AudioSource string `json:"audioSource,omitempty"`
	AudioType   string `json:"audioType,omitempty"`
	AudioLength uint   `json:"audioLength,omitempty"`
	// Link is the link of Episode. Edit episode_types.go to remove/update
	Link string      `json:"link,omitempty"`
	Date metav1.Time `json:"date,omitempty"`
}

EpisodeSpec defines the desired state of Episode

func (*EpisodeSpec) DeepCopy

func (in *EpisodeSpec) DeepCopy() *EpisodeSpec

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

func (*EpisodeSpec) DeepCopyInto

func (in *EpisodeSpec) DeepCopyInto(out *EpisodeSpec)

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

type EpisodeStatus

type EpisodeStatus struct {
	Hints          int64       `json:"hints,omitempty"`
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

EpisodeStatus defines the observed state of Episode

func (*EpisodeStatus) DeepCopy

func (in *EpisodeStatus) DeepCopy() *EpisodeStatus

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

func (*EpisodeStatus) DeepCopyInto

func (in *EpisodeStatus) DeepCopyInto(out *EpisodeStatus)

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

type FeishuNotifier

type FeishuNotifier struct {
	WebhookUrl string `json:"webhook_url"`
}

FeishuNotifier defines the spec for integrating with Slack +k8s:openapi-gen=true

func (*FeishuNotifier) DeepCopy

func (in *FeishuNotifier) DeepCopy() *FeishuNotifier

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

func (*FeishuNotifier) DeepCopyInto

func (in *FeishuNotifier) DeepCopyInto(out *FeishuNotifier)

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

func (*FeishuNotifier) Send

func (n *FeishuNotifier) Send(message string) error

type MessageSender

type MessageSender interface {
	Send(message string) error
}

type Notifier

type Notifier struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec NotifierSpec `json:"spec,omitempty"`
}

Notifier is the Schema for the notifiers API +k8s:openapi-gen=true

func (*Notifier) DeepCopy

func (in *Notifier) DeepCopy() *Notifier

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

func (*Notifier) DeepCopyInto

func (in *Notifier) DeepCopyInto(out *Notifier)

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

func (*Notifier) DeepCopyObject

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

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

type NotifierList

type NotifierList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Notifier `json:"items"`
}

NotifierList contains a list of Notifier

func (*NotifierList) DeepCopy

func (in *NotifierList) DeepCopy() *NotifierList

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

func (*NotifierList) DeepCopyInto

func (in *NotifierList) DeepCopyInto(out *NotifierList)

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

func (*NotifierList) DeepCopyObject

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

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

type NotifierSpec

type NotifierSpec struct {
	Slack  *SlackNotifier  `json:"slack,omitempty"`
	Feishu *FeishuNotifier `json:"feishu,omitempty"`
}

NotifierSpec defines the desired state of Notifier +k8s:openapi-gen=true

func (*NotifierSpec) DeepCopy

func (in *NotifierSpec) DeepCopy() *NotifierSpec

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

func (*NotifierSpec) DeepCopyInto

func (in *NotifierSpec) DeepCopyInto(out *NotifierSpec)

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

type PlayTodo

type PlayTodo struct {
	v1.LocalObjectReference `json:",inline"`
	// DisplayName which comes from an Episode
	DisplayName string `json:"displayName,omitempty"`
	Index       int    `json:"index,omitempty"`
	Location    int    `json:"location,omitempty"`
}

PlayTodo represents a later play item

func (*PlayTodo) DeepCopy

func (in *PlayTodo) DeepCopy() *PlayTodo

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

func (*PlayTodo) DeepCopyInto

func (in *PlayTodo) DeepCopyInto(out *PlayTodo)

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

type Profile

type Profile struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ProfileSpec   `json:"spec,omitempty"`
	Status ProfileStatus `json:"status,omitempty"`
}

Profile is the Schema for the profiles API

func (*Profile) DeepCopy

func (in *Profile) DeepCopy() *Profile

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

func (*Profile) DeepCopyInto

func (in *Profile) DeepCopyInto(out *Profile)

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

func (*Profile) DeepCopyObject

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

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

type ProfileList

type ProfileList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Profile `json:"items"`
}

ProfileList contains a list of Profile

func (*ProfileList) DeepCopy

func (in *ProfileList) DeepCopy() *ProfileList

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

func (*ProfileList) DeepCopyInto

func (in *ProfileList) DeepCopyInto(out *ProfileList)

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

func (*ProfileList) DeepCopyObject

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

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

type ProfileSpec

type ProfileSpec struct {
	// DisplayName is the displayName of Profile. Edit profile_types.go to remove/update
	DisplayName   string                    `json:"displayName,omitempty"`
	SocialLinks   map[string]string         `json:"socialLinks,omitempty"`
	LaterPlayList []PlayTodo                `json:"laterPlayList,omitempty"`
	WatchedList   []v1.LocalObjectReference `json:"watchedList,omitempty"`
	Notifier      v1.LocalObjectReference   `json:"notifier,omitempty"`
	Subscription  v1.LocalObjectReference   `json:"subscription,omitempty"`
}

ProfileSpec defines the desired state of Profile

func (*ProfileSpec) DeepCopy

func (in *ProfileSpec) DeepCopy() *ProfileSpec

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

func (*ProfileSpec) DeepCopyInto

func (in *ProfileSpec) DeepCopyInto(out *ProfileSpec)

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

type ProfileStatus

type ProfileStatus struct {
}

ProfileStatus defines the observed state of Profile

func (*ProfileStatus) DeepCopy

func (in *ProfileStatus) DeepCopy() *ProfileStatus

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

func (*ProfileStatus) DeepCopyInto

func (in *ProfileStatus) DeepCopyInto(out *ProfileStatus)

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

type RSS

type RSS struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RSSSpec   `json:"spec,omitempty"`
	Status RSSStatus `json:"status,omitempty"`
}

RSS is the Schema for the rsses API

func (*RSS) DeepCopy

func (in *RSS) DeepCopy() *RSS

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

func (*RSS) DeepCopyInto

func (in *RSS) DeepCopyInto(out *RSS)

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

func (*RSS) DeepCopyObject

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

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

type RSSList

type RSSList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RSS `json:"items"`
}

RSSList contains a list of RSS

func (*RSSList) DeepCopy

func (in *RSSList) DeepCopy() *RSSList

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

func (*RSSList) DeepCopyInto

func (in *RSSList) DeepCopyInto(out *RSSList)

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

func (*RSSList) DeepCopyObject

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

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

type RSSSpec

type RSSSpec struct {
	// Title is the title of RSS
	Title       string   `json:"title,omitempty"`
	Language    string   `json:"language,omitempty"`
	Author      string   `json:"author,omitempty"`
	Address     string   `json:"address,omitempty"`
	Image       string   `json:"image,omitempty"`
	Link        string   `json:"link,omitempty"`
	Description string   `json:"description,omitempty"`
	Categories  []string `json:"categories,omitempty"`
}

RSSSpec defines the desired state of RSS

func (*RSSSpec) DeepCopy

func (in *RSSSpec) DeepCopy() *RSSSpec

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

func (*RSSSpec) DeepCopyInto

func (in *RSSSpec) DeepCopyInto(out *RSSSpec)

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

type RSSStatus

type RSSStatus struct {
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

RSSStatus defines the observed state of RSS

func (*RSSStatus) DeepCopy

func (in *RSSStatus) DeepCopy() *RSSStatus

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

func (*RSSStatus) DeepCopyInto

func (in *RSSStatus) DeepCopyInto(out *RSSStatus)

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

type SlackNotifier

type SlackNotifier struct {
	WebhookUrl string `json:"webhook_url"`
	Channel    string `json:"channel,omitempty"`
	Username   string `json:"username,omitempty"`
	IconEmoji  string `json:"icon_emoji,omitempty"`
}

SlackNotifier defines the spec for integrating with Slack +k8s:openapi-gen=true

func (*SlackNotifier) DeepCopy

func (in *SlackNotifier) DeepCopy() *SlackNotifier

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

func (*SlackNotifier) DeepCopyInto

func (in *SlackNotifier) DeepCopyInto(out *SlackNotifier)

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

func (*SlackNotifier) Send

func (n *SlackNotifier) Send(message string) error

type Subscription

type Subscription struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SubscriptionSpec `json:"spec,omitempty"`
	Status ProfileStatus    `json:"status,omitempty"`
}

Subscription is the Schema for the subscriptions API

func (*Subscription) DeepCopy

func (in *Subscription) DeepCopy() *Subscription

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

func (*Subscription) DeepCopyInto

func (in *Subscription) DeepCopyInto(out *Subscription)

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

func (*Subscription) DeepCopyObject

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

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

type SubscriptionList

type SubscriptionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Subscription `json:"items"`
}

SubscriptionList contains a list of Subscription

func (*SubscriptionList) DeepCopy

func (in *SubscriptionList) DeepCopy() *SubscriptionList

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

func (*SubscriptionList) DeepCopyInto

func (in *SubscriptionList) DeepCopyInto(out *SubscriptionList)

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

func (*SubscriptionList) DeepCopyObject

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

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

type SubscriptionSpec

type SubscriptionSpec struct {
	RSSList []v1.LocalObjectReference `json:"rssList,omitempty"`
}

SubscriptionSpec defines the desired state of Profile

func (*SubscriptionSpec) DeepCopy

func (in *SubscriptionSpec) DeepCopy() *SubscriptionSpec

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

func (*SubscriptionSpec) DeepCopyInto

func (in *SubscriptionSpec) DeepCopyInto(out *SubscriptionSpec)

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