generator

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGen

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

CodeGen holds K8s resource object

func New

func New(raw []byte, method types.KubeMethod, isCR, namespaced, isDynamic bool, clientpkg, crAPI string) CodeGen

New returns instance of CodeGen

func (*CodeGen) Generate

func (c *CodeGen) Generate() (code string, err error)

Generate returns Go code for types.KubeMethod on a K8s resource

Jump to

Keyboard shortcuts

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