options

package
v0.3.24 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAwsSecret

type CreateAwsSecret struct {
	CredentialsFileLocation string
	CredentialsFileProfile  string
	AccessKeyId             string
	SecretAccessKey         string
}

type CreateRoutingRule

type CreateRoutingRule struct {
	SourceSelector      Selector
	DestinationSelector Selector
	TargetMesh          ResourceRefValue
	RequestMatchers     RequestMatchersValue
	RoutingRuleSpec     RoutingRuleSpec
}

type CreateSecurityRule

type CreateSecurityRule struct {
	SourceSelector      Selector
	DestinationSelector Selector
	TargetMesh          ResourceRefValue
	AllowedMethods      []string
	AllowedPaths        []string
}

type CreateTlsSecret

type CreateTlsSecret struct {
	RootCaFilename     string
	PrivateKeyFilename string
	CertChainFilename  string
	CaCertFilename     string
}

type EditUpstream

type EditUpstream struct {
	MtlsMesh ResourceRefValue
}

type FaultInjection

type FaultInjection struct {
	Percent float64
	Abort   FaultInjectionAbort
	Delay   FaultInjectionDelay
}

type FaultInjectionAbort

type FaultInjectionAbort struct {
	Http v1.FaultInjection_Abort_HttpStatus
}

type FaultInjectionDelay

type FaultInjectionDelay struct {
	Fixed time.Duration
}

type GetMeshIngress

type GetMeshIngress struct {
	Proxy  glooOptions.Proxy
	Target ResourceRefValue
}

type Init

type Init struct {
	HelmChartOverride string
	HelmValues        string
	InstallNamespace  string
	ReleaseVersion    string
	DryRun            bool
}

type Install

type Install struct {
	Update                bool // if install exists and is enabled, update with new opts
	InstallationNamespace InstallationNamespace
	IstioInstall          IstioInstall
	LinkerdInstall        v1.LinkerdInstall
	GlooIngressInstall    v1.GlooInstall
	MeshIngress           MeshIngressInstall
	InstallTimeout        time.Duration // time to wait for successful install
}

type InstallationNamespace

type InstallationNamespace struct {
	Istio   string
	Linkerd string
	Gloo    string
}

type IstioInstall added in v0.3.22

type IstioInstall struct {
	v1.IstioInstall
	InstallSmiAdapter bool
}

type MapStringStringValue

type MapStringStringValue map[string]string

func (*MapStringStringValue) Set

func (v *MapStringStringValue) Set(s string) error

func (*MapStringStringValue) String

func (v *MapStringStringValue) String() string

func (*MapStringStringValue) Type

func (v *MapStringStringValue) Type() string

type MaxRetries added in v0.3.11

type MaxRetries struct {
	Attempts      uint32
	PerTryTimeout time.Duration
	RetryOn       string
}

type MeshIngressInstall

type MeshIngressInstall struct {
	Meshes ResourceRefsValue
}

type Options

type Options struct {
	// common
	Ctx           context.Context
	Interactive   bool
	OutputType    string
	Metadata      core.Metadata
	PrintKubeYaml bool

	Init               Init
	Upgrade            Upgrade
	Install            Install
	Uninstall          Uninstall
	CreateRoutingRule  CreateRoutingRule
	CreateSecurityRule CreateSecurityRule
	CreateTlsSecret    CreateTlsSecret
	CreateAwsSecret    CreateAwsSecret
	EditUpstream       EditUpstream
	GetMeshIngress     GetMeshIngress
	SetRootCert        SetRootCert
	SetStats           SetStats
	RegisterAppMesh    RegisterAppMesh
}

type RegisterAppMesh added in v0.3.8

type RegisterAppMesh struct {
	Region              string
	Secret              ResourceRefValue
	EnableAutoInjection string
	ConfigMap           ResourceRefValue
	PodSelector         Selector
	VirtualNodeLabel    string
}

type RequestMatcher

type RequestMatcher struct {
	PathPrefix    string            `json:"path_prefix"`
	PathExact     string            `json:"path_exact"`
	PathRegex     string            `json:"path_regex"`
	Methods       []string          `json:"methods"`
	HeaderMatcher map[string]string `json:"header_matchers"`
}

type RequestMatchersValue

type RequestMatchersValue []RequestMatcher

func (*RequestMatchersValue) Set

func (v *RequestMatchersValue) Set(s string) error

func (*RequestMatchersValue) String

func (v *RequestMatchersValue) String() string

func (*RequestMatchersValue) Type

func (v *RequestMatchersValue) Type() string

type ResourceRefValue

type ResourceRefValue core.ResourceRef

func (*ResourceRefValue) Set

func (v *ResourceRefValue) Set(s string) error

func (*ResourceRefValue) String

func (v *ResourceRefValue) String() string

func (*ResourceRefValue) Type

func (v *ResourceRefValue) Type() string

type ResourceRefsValue

type ResourceRefsValue []core.ResourceRef

func (*ResourceRefsValue) Set

func (v *ResourceRefsValue) Set(s string) error

func (*ResourceRefsValue) String

func (v *ResourceRefsValue) String() string

func (*ResourceRefsValue) Type

func (v *ResourceRefsValue) Type() string

type Retries added in v0.3.11

type Retries struct {
	MaxRetries  MaxRetries
	RetryBudget v1.RetryBudget
}

type RoutingRuleSpec

type RoutingRuleSpec struct {
	TrafficShifting TrafficShiftingValue
	FaultInjection  FaultInjection
	Retries         Retries
}

no implemented specs yet

type Selector

type Selector struct {
	SelectedUpstreams  ResourceRefsValue
	SelectedNamespaces []string
	SelectedLabels     MapStringStringValue
}

type SetRootCert

type SetRootCert struct {
	TargetMesh ResourceRefValue
	TlsSecret  ResourceRefValue
}

type SetStats

type SetStats struct {
	TargetMesh           ResourceRefValue
	PrometheusConfigMaps ResourceRefsValue
}

type TrafficShiftingValue

type TrafficShiftingValue v1.TrafficShifting

func (*TrafficShiftingValue) Set

func (v *TrafficShiftingValue) Set(s string) error

func (*TrafficShiftingValue) String

func (v *TrafficShiftingValue) String() string

func (*TrafficShiftingValue) Type

func (v *TrafficShiftingValue) Type() string

type Uninstall

type Uninstall struct {
	Metadata core.Metadata
}

type Upgrade added in v0.3.21

type Upgrade struct {
	ReleaseTag   string
	DownloadPath string
}

Jump to

Keyboard shortcuts

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