k8sclient

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() (client.WithWatch, error)

func DefaultConfig

func DefaultConfig() (*rest.Config, error)

func DefaultInterface

func DefaultInterface() (kubernetes.Interface, error)

func New

func New(cfg *rest.Config) (client.WithWatch, error)

func NewMapper

func NewMapper(scheme *runtime.Scheme, mapper meta.RESTMapper) (meta.RESTMapper, error)

Types

type FastMapper

type FastMapper struct {
	// contains filtered or unexported fields
}

func (*FastMapper) KindFor

func (*FastMapper) KindsFor

func (*FastMapper) RESTMapping

func (f *FastMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)

func (*FastMapper) RESTMappings

func (f *FastMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)

func (*FastMapper) ResourceFor

func (*FastMapper) ResourceSingularizer

func (f *FastMapper) ResourceSingularizer(resource string) (singular string, err error)

func (*FastMapper) ResourcesFor

type ListOptions

type ListOptions = client.ListOptions

type ObjectKey

type ObjectKey = client.ObjectKey

Jump to

Keyboard shortcuts

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