template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TmplDefaultOpts = TmplOpt{
		ApiVersion:  "v1",
		ApiMimetype: "application/json",
		ApiPath:     "/apis",
		ApiGroup:    "template.openshift.io",
		ApiResource: "processedtemplates",
	}
)

Functions

func NoFilterFn

func NoFilterFn(obj *runtime.Object) error

Types

type FilterFn

type FilterFn func(obj *runtime.Object) error

type Tmpl

type Tmpl struct {
	RestClient rest.Interface
	Source     *v1template.Template
	Raw        []byte
	Objects    []runtime.Object
}

func FromReader

func FromReader(restConfig *rest.Config, reader io.Reader) (*Tmpl, error)

func New

func New(restConfig *rest.Config, data []byte) (*Tmpl, error)

func (*Tmpl) Bootstrap

func (t *Tmpl) Bootstrap(restConfig *rest.Config, opts TmplOpt) error

func (*Tmpl) CopyObjects

func (t *Tmpl) CopyObjects(filter FilterFn, objects *[]runtime.Object)

func (*Tmpl) GetObjects

func (t *Tmpl) GetObjects(filter FilterFn) []runtime.Object

func (*Tmpl) Process

func (t *Tmpl) Process(params map[string]string, ns string) error

type TmplOpt

type TmplOpt struct {
	ApiKind     string
	ApiVersion  string
	ApiPath     string
	ApiGroup    string
	ApiMimetype string
	ApiResource string
}

Jump to

Keyboard shortcuts

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