clientgen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientParams

type ClientParams struct {
	// Package is the package the client will be generated in.
	Package string `yaml:"package"`

	// Imports is used for imports into the client.
	Imports map[string]string `yaml:"imports"`

	// Kubernetes holds information about the backing API.
	Kubernetes struct {
		// Kind is the kind of the resource.
		Kind string `yaml:"kind"`
		// Version is the version of the resource kf supports.
		Version string `yaml:"version"`
		// Namespaced indicates whether this object is namespaced or global.
		Namespaced bool `yaml:"namespaced"`
		// Plural contains the pluralizataion of kind. If blank, default of Kind+"s"
		// is assumed.
		Plural string `yaml:"plural"`
	} `yaml:"kubernetes"`

	// CF contains information about this resource from a CF side.
	CF struct {
		// The name of the CF type.
		Name string `yaml:"name"`
	} `yaml:"cf"`

	// Type is the Go type of the resource. This MUST be imported using Imports.
	Type string `yaml:"type"`

	// ClientType is the Go type of the Kubernetes client. This MUST be imported using Imports.
	ClientType string `yaml:"clientType"`
}

func (*ClientParams) Render

func (f *ClientParams) Render() ([]byte, error)

Directories

Path Synopsis
Package gentest contains tests for the client generator.
Package gentest contains tests for the client generator.

Jump to

Keyboard shortcuts

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