v1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion  = "examples.com/v1"
	KindBackend = "Backend"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BackendSpec `json:"spec"`
}

func (Backend) MarshalJSON

func (backend Backend) MarshalJSON() ([]byte, error)

func (*Backend) UnmarshalJSON added in v0.4.0

func (backend *Backend) UnmarshalJSON(data []byte) error

type BackendSpec

type BackendSpec struct {
	Image       string            `json:"image"`
	Replicas    int32             `json:"replicas"`
	Labels      map[string]string `json:"labels,omitempty"`
	NodePort    int               `json:"nodePort,omitempty"`
	ServicePort int               `json:"port,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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