v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: GPL-3.0 Imports: 12 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 (r *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.

func (*Feed) Default added in v0.0.3

func (r *Feed) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*Feed) SetupWebhookWithManager added in v0.0.3

func (r *Feed) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Feed) ValidateCreate added in v0.0.3

func (r *Feed) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*Feed) ValidateDelete added in v0.0.3

func (r *Feed) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*Feed) ValidateUpdate added in v0.0.3

func (r *Feed) ValidateUpdate(_ runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

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"`

	// The file ID of the folder to place the RSS feed files in. Default to the root directory (0).
	// +optional
	ParentDirID *uint `json:"parent_dir_id,omitempty"`

	// Should old files in the folder be deleted when space is low. Default to false.
	// +optional
	DeleteOldFiles *bool `json:"delete_old_files,omitempty"`

	// Should the current items in the feed, at creation time, be ignored.
	// +optional
	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"`

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

	// Should the RSS feed be created in the paused state. Default to false.
	// +optional
	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
JackTT - Gopher 🇻🇳