generators

package
v3.0.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Imports = []string{
		"context",
		"sync",
		"time",
		"k8s.io/client-go/rest",
		"github.com/rancher/wrangler/v3/pkg/apply",
		"github.com/rancher/lasso/pkg/controller",
		"github.com/rancher/wrangler/v3/pkg/condition",
		"github.com/rancher/wrangler/v3/pkg/schemes",
		"github.com/rancher/wrangler/v3/pkg/generic",
		"github.com/rancher/wrangler/v3/pkg/kv",
		"k8s.io/apimachinery/pkg/api/equality",
		"k8s.io/apimachinery/pkg/api/errors",
		"metav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"",
		"k8s.io/apimachinery/pkg/labels",
		"k8s.io/apimachinery/pkg/runtime",
		"k8s.io/apimachinery/pkg/runtime/schema",
		"k8s.io/apimachinery/pkg/types",
		"k8s.io/apimachinery/pkg/watch",
	}
)

Functions

func FactoryGo

func FactoryGo(group string, customArgs *args.CustomArgs) generator.Generator

func GroupInterfaceGo

func GroupInterfaceGo(group string, customArgs *args.CustomArgs) generator.Generator

func GroupVersionInterfaceGo

func GroupVersionInterfaceGo(gv schema.GroupVersion, customArgs *args.CustomArgs) generator.Generator

func ListTypesGo

func ListTypesGo(gv schema.GroupVersion, customArgs *args.CustomArgs) generator.Generator

func RegisterGroupGo

func RegisterGroupGo(group string, customArgs *args.CustomArgs) generator.Generator

func RegisterGroupVersionGo

func RegisterGroupVersionGo(gv schema.GroupVersion, customArgs *args.CustomArgs) generator.Generator

func Target

func Target(customArgs *args.CustomArgs, name string, generators func(context *generator.Context) []generator.Generator) generator.SimpleTarget

func TypeGo

func TypeGo(gv schema.GroupVersion, name *types.Name, customArgs *args.CustomArgs) generator.Generator

Types

type ClientGenerator

type ClientGenerator struct {
	Fakes map[string][]string
}

func NewClientGenerator

func NewClientGenerator() *ClientGenerator

func (*ClientGenerator) GetTargets

func (cg *ClientGenerator) GetTargets(context *generator.Context, customArgs *args.CustomArgs) []generator.Target

Packages makes the client package definition.

Jump to

Keyboard shortcuts

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