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)
Click to show internal directories.
Click to hide internal directories.