clientgen

package
v0.0.0-...-2dc1248 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSet

type ClientSet struct {
	// Name is the name of the clientset, e.g. "kubernetes"
	Name string

	// Groups are the groups in this client-set.
	Groups []types.GroupVersionInfo

	// PackagePath is the package under which this client-set will be exposed.
	// TODO(skuznets) we should be able to figure this out from the output dir, ideally
	PackagePath string

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string
}

func (*ClientSet) WriteContent

func (c *ClientSet) WriteContent(w io.Writer) error

type FakeClientset

type FakeClientset struct {
	// Name is the name of the clientset, e.g. "kubernetes"
	Name string

	// Groups are the groups in this client-set.
	Groups []types.GroupVersionInfo

	// PackagePath is the package under which this client-set will be exposed.
	// TODO(skuznets) we should be able to figure this out from the output dir, ideally
	PackagePath string

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string
}

func (*FakeClientset) WriteContent

func (c *FakeClientset) WriteContent(w io.Writer) error

type FakeGroup

type FakeGroup struct {
	// Group is the group in this client.
	Group types.GroupVersionInfo

	// Kinds are the kinds in the group.
	Kinds []parser.Kind

	// PackagePath is the package under which this client-set will be exposed.
	// TODO(skuznets) we should be able to figure this out from the output dir, ideally
	PackagePath string

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string
}

func (*FakeGroup) WriteContent

func (g *FakeGroup) WriteContent(w io.Writer) error

type FakeTypedClient

type FakeTypedClient struct {
	// Group is the group in this client.
	Group types.GroupVersionInfo

	// Kind is the kinds in this file.
	Kind parser.Kind

	// PackagePath is the package under which this client-set will be exposed.
	// TODO(skuznets) we should be able to figure this out from the output dir, ideally
	PackagePath string

	// APIPackagePath is the root directory under which API types exist.
	// e.g. "k8s.io/api"
	APIPackagePath string

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string

	// SingleClusterApplyConfigurationsPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/applyconfigurations"
	SingleClusterApplyConfigurationsPackagePath string
}

func (*FakeTypedClient) WriteContent

func (c *FakeTypedClient) WriteContent(w io.Writer) error

type Group

type Group struct {
	// Group is the group in this client.
	Group types.GroupVersionInfo

	// Kinds are the kinds in the group.
	Kinds []parser.Kind

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string
}

func (*Group) WriteContent

func (g *Group) WriteContent(w io.Writer) error

type Scheme

type Scheme struct {
	// Groups are the groups in this client-set.
	Groups []types.GroupVersionInfo

	// APIPackagePath is the root directory under which API types exist.
	// e.g. "k8s.io/api"
	APIPackagePath string
}

func (*Scheme) WriteContent

func (c *Scheme) WriteContent(w io.Writer) error

type TypedClient

type TypedClient struct {
	// Group is the group in this client.
	Group types.GroupVersionInfo

	// Kind is the kinds in this file.
	Kind parser.Kind

	// APIPackagePath is the root directory under which API types exist.
	// e.g. "k8s.io/api"
	APIPackagePath string

	// SingleClusterClientPackagePath is the root directory under which single-cluster-aware clients exist.
	// e.g. "k8s.io/client-go/kubernetes"
	SingleClusterClientPackagePath string
}

func (*TypedClient) WriteContent

func (c *TypedClient) WriteContent(w io.Writer) error

Jump to

Keyboard shortcuts

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