virtualservice

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultVirtualService is name of the virtual service to create if none exists
	DefaultVirtualService = "default"
)

Variables

This section is empty.

Functions

func DefaultVirtualServiceValidation

func DefaultVirtualServiceValidation(sc storage.Interface, v *v1.VirtualService) error

func Interactive

Interactive for interactively creating/editing virtual services Doesn't handle routes as we have separate interactive mode for routes

func IsNotExists

func IsNotExists(err error) bool

func NewNotExistsErr

func NewNotExistsErr(msg string) notExistsErr

func ParseFile

func ParseFile(filename string) (*v1.VirtualService, error)

ParseFile parses YAML file into a virtual service

func PrintTable

func PrintTable(list []*v1.VirtualService, w io.Writer)

PrintTable prints virtual services using tables to io.Writer

func PrintTemplate

func PrintTemplate(list []*v1.VirtualService, tmpl string, w io.Writer) error

PrintTemplate prints virtual services using the provided Go template to io.Writer

func SelectInteractive

func SelectInteractive(sc storage.Interface) (*v1.VirtualService, error)

SelectInteractive - selects a virtual service interactively from the list of virtual services in the system

func VirtualService

func VirtualService(sc storage.Interface, virtualServiceName, domain string, create bool) (*v1.VirtualService, error)

VirtualService returns a virtual service for given name or domain If name or domain isn't provided, it returns default virtual service (if exits or create is true)

Types

type Options

type Options struct {
	Filename    string
	Output      string
	Template    string
	Interactive bool
}

Options represents the CLI parameters for virtual services

Jump to

Keyboard shortcuts

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