v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=putio.skynewz.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "putio.skynewz.dev", 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 AuthSecretReference

type AuthSecretReference struct {
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
	// +kubebuilder:validation:MinLength=1
	Key string `json:"key"`
}

AuthSecretReference references a Secret containing a Put.io authentication token.

func (*AuthSecretReference) DeepCopy

func (in *AuthSecretReference) DeepCopy() *AuthSecretReference

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

func (*AuthSecretReference) DeepCopyInto

func (in *AuthSecretReference) DeepCopyInto(out *AuthSecretReference)

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

type Feed

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

	Spec   FeedSpec   `json:"spec,omitempty"`
	Status FeedStatus `json:"status,omitempty"`
}

Feed is the Schema to manage your rss feeds.

func (*Feed) AuthSecretRef

func (in *Feed) AuthSecretRef() AuthSecretReference

func (*Feed) DeepCopy

func (in *Feed) DeepCopy() *Feed

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

func (*Feed) DeepCopyInto

func (in *Feed) DeepCopyInto(out *Feed)

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

func (*Feed) DeepCopyObject

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

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

type FeedList

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

FeedList contains a list of Feed.

func (*FeedList) DeepCopy

func (in *FeedList) DeepCopy() *FeedList

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

func (*FeedList) DeepCopyInto

func (in *FeedList) DeepCopyInto(out *FeedList)

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

func (*FeedList) DeepCopyObject

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

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

type FeedSpec

type FeedSpec struct {
	// +kubebuilder:validation:MinLength:=1
	// Title of the RSS feed as will appear on the site
	Title string `json:"title"`

	// +kubebuilder:validation:MinLength:=1
	// The URL of the RSS feed to be watched
	RssSourceURL string `json:"rss_source_url"`

	// +kubebuilder:default:=0
	// The file ID of the folder to place the RSS feed files in
	ParentDirID *uint32 `json:"parent_dir_id,omitempty"`

	// +kubebuilder:default:=false
	// Should old files in the folder be deleted when space is low
	DeleteOldFiles bool `json:"delete_old_files,omitempty"`

	// +kubebuilder:default:=false
	// Should the current items in the feed, at creation time, be ignored
	DontProcessWholeFeed bool `json:"dont_process_whole_feed,omitempty"`

	// +kubebuilder:validation:MinLength:=1
	// Only items with titles that contain any of these words will be transferred (comma-separated list of words)
	Keyword string `json:"keyword"`

	// +optional
	// No items with titles that contain any of these words will be transferred (comma-separated list of words)
	UnwantedKeywords string `json:"unwanted_keywords,omitempty"`

	// +kubebuilder:default:=false
	// Should the RSS feed be created in the paused state
	Paused bool `json:"paused,omitempty"`

	// Authentication reference to Put.io token in a secret
	AuthSecretRef AuthSecretReference `json:"authSecretRef"`
}

FeedSpec defines the desired state of Feed.

func (*FeedSpec) DeepCopy

func (in *FeedSpec) DeepCopy() *FeedSpec

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

func (*FeedSpec) DeepCopyInto

func (in *FeedSpec) DeepCopyInto(out *FeedSpec)

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

type FeedStatus

type FeedStatus struct {
	ID *uint `json:"id,omitempty"`

	// Conditions represent the latest available observations of a Feed state
	Conditions []metav1.Condition `json:"conditions"`
}

FeedStatus defines the observed state of Feed.

func (*FeedStatus) DeepCopy

func (in *FeedStatus) DeepCopy() *FeedStatus

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

func (*FeedStatus) DeepCopyInto

func (in *FeedStatus) DeepCopyInto(out *FeedStatus)

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