v1

package
v0.0.0-...-bb7034b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package

Index

Constants

View Source
const ExampleResourceKind = "Example"
View Source
const ExampleResourcePlural = "examples"
View Source
const ExampleResourceSingular = "example"
View Source
const GroupName = "cr.client-go.k8s.io"

GroupName is the group name used in this package.

View Source
const Version = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ExampleSpec   `json:"spec"`
	Status            ExampleStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*Example) GetSpecState

func (e *Example) GetSpecState() states.State

func (*Example) GetStatusState

func (e *Example) GetStatusState() states.State

func (*Example) JSON

func (e *Example) JSON() (string, error)

func (*Example) Name

func (e *Example) Name() string

func (*Example) Namespace

func (e *Example) Namespace() string

func (*Example) SetStatusStateWithMessage

func (e *Example) SetStatusStateWithMessage(state states.State, msg string)

type ExampleList

type ExampleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Example `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ExampleList) GetItems

func (el *ExampleList) GetItems() []runtime.Object

GetItems returns the list of items to be used in the List api call for crs

type ExampleSpec

type ExampleSpec struct {
	State states.State `json:"state"`
	Foo   string       `json:"foo"`
	Bar   bool         `json:"bar"`
}

type ExampleStatus

type ExampleStatus struct {
	State   states.State `json:"state"`
	Message string       `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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