riofile

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjToYaml added in v0.6.0

func ObjToYaml(obj runtime.Object, format string) (string, error)

func Render added in v0.4.0

func Render(objects []runtime.Object) ([]byte, error)

func RenderObject added in v0.4.0

func RenderObject(object runtime.Object) ([]byte, error)

func Update added in v0.4.0

func Update(originalObj runtime.Object, bytes []byte) (runtime.Object, error)

Types

type Riofile

type Riofile struct {
	Services         map[string]riov1.Service
	Configs          map[string]v1.ConfigMap
	Routers          map[string]riov1.Router
	ExternalServices map[string]riov1.ExternalService
	Kubernetes       []runtime.Object
}

func Parse

func Parse(contents []byte, answers template.AnswerCallback) (*Riofile, error)

Parse converts a textfile into a Riofile struct

func (*Riofile) Objects

func (r *Riofile) Objects() (result []runtime.Object)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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