generators

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Imports = []string{
		"context",
		"sync",
		"time",
		"k8s.io/client-go/rest",
		"github.com/rancher/lasso/pkg/client",
		"github.com/rancher/lasso/pkg/controller",
		"github.com/rancher/wrangler/pkg/apply",
		"github.com/rancher/wrangler/pkg/condition",
		"github.com/rancher/wrangler/pkg/schemes",
		"github.com/rancher/wrangler/pkg/generic",
		"github.com/rancher/wrangler/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",
		"utilruntime \"k8s.io/apimachinery/pkg/util/runtime\"",
		"k8s.io/apimachinery/pkg/watch",
		"k8s.io/client-go/tools/cache",
	}
)

Functions

func FactoryGo

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

func GroupInterfaceGo

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

func GroupVersionInterfaceGo

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

func ListTypesGo

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

func Package

func Package(arguments *args.GeneratorArgs, name string, generators func(context *generator.Context) []generator.Generator) generator.Package

func RegisterGroupGo

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

func RegisterGroupVersionGo

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

func TypeGo

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

Types

type ClientGenerator

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

func NewClientGenerator

func NewClientGenerator() *ClientGenerator

func (*ClientGenerator) Packages

func (cg *ClientGenerator) Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Packages makes the client package definition.

Jump to

Keyboard shortcuts

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