pilotv2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK8SRestClient

func CreateK8SRestClient(kubeconfig, apiPath, group, version string) (*rest.RESTClient, error)

CreateK8SRestClient returns the kubernetes client for RESTful API calls

Types

type DestinationRuleResult

type DestinationRuleResult struct {
	Items []MinDestinationRule
}

DestinationRuleResult is the list of MinDestinationRules

type MinDestinationRule

type MinDestinationRule struct {
	Metadata struct {
		Name      string `json:"name"`
		Namespace string `json:"namespace"`
	} `json:"metadata"`
	Spec struct {
		Host    string `json:"host"`
		Subsets []struct {
			Labels map[string]string `json:"labels"`
			Name   string            `json:"name"`
		} `json:"subsets"`
	} `json:"spec"`
}

MinDestinationRule is the minimum structure we need to get subsets

Jump to

Keyboard shortcuts

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