v1alpha1

package
v0.0.0-...-909d7fb Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 provides the Anglo Korean CRD Types

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: common.CRDGroup, Version: v1alpha1common.CRDVersion}

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 Cronjob

type Cronjob struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata"`
	Spec               CronjobSpec   `json:"spec"`
	Status             CronjobStatus `json:"status,omitempty"`
}

type CronjobList

type CronjobList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []Cronjob `json:"items"`
}

type CronjobSpec

type CronjobSpec struct {
	v1alpha1common.Base
	Schedule string `json:"schedule"`
}

CronjobSpec is a resource for creating cronjobs.

It wraps the usual cronjob stuff with all of the extra config and data and helpers we want in our jobs.

If you just need a cronjob to run a container, this resource overkill :)

type CronjobStatus

type CronjobStatus struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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