Documentation ¶
Index ¶
- Constants
- func DefaultVirtualServiceValidation(sc storage.Interface, v *v1.VirtualService) error
- func Interactive(sc storage.Interface, si dependencies.SecretStorage, vs *v1.VirtualService) error
- func IsNotExists(err error) bool
- func NewNotExistsErr(msg string) notExistsErr
- func ParseFile(filename string) (*v1.VirtualService, error)
- func PrintTable(list []*v1.VirtualService, w io.Writer)
- func PrintTemplate(list []*v1.VirtualService, tmpl string, w io.Writer) error
- func SelectInteractive(sc storage.Interface) (*v1.VirtualService, error)
- func VirtualService(sc storage.Interface, virtualServiceName, domain string, create bool) (*v1.VirtualService, error)
- type Options
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 ¶
func Interactive(sc storage.Interface, si dependencies.SecretStorage, vs *v1.VirtualService) error
Interactive for interactively creating/editing virtual services Doesn't handle routes as we have separate interactive mode for routes
func IsNotExists ¶
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.