api

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeploymentKind = apps.SchemeGroupVersion.WithKind("Deployment")
	CloneSetKind   = kruiseappsv1alpha1.SchemeGroupVersion.WithKind("CloneSet")
)
View Source
var Scheme = scheme.Scheme

Functions

func GetScheme

func GetScheme() *runtime.Scheme

Types

type ResourceRef

type ResourceRef struct {
	// API version of the object.
	APIVersion string
	// Kind of the object.
	Kind string
	// Namespace of the object.
	Namespace string
	// Name of the object.
	Name string
}

func NewCloneSetRef

func NewCloneSetRef(namespace, name string) ResourceRef

func NewDeploymentRef

func NewDeploymentRef(namespace, name string) ResourceRef

func (*ResourceRef) GetGroupVersionKind

func (rf *ResourceRef) GetGroupVersionKind() schema.GroupVersionKind

func (*ResourceRef) GetNamespacedName

func (rf *ResourceRef) GetNamespacedName() types.NamespacedName

Jump to

Keyboard shortcuts

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