config

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {
	Name   string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetName

func (x *Config) GetName() string

func (*Config) GetRoutes

func (x *Config) GetRoutes() []*Route

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Policy

type Policy struct {
	Id             string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name           string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	AllowedUsers   []string `protobuf:"bytes,3,rep,name=allowed_users,json=allowedUsers,proto3" json:"allowed_users,omitempty"`
	AllowedGroups  []string `protobuf:"bytes,4,rep,name=allowed_groups,json=allowedGroups,proto3" json:"allowed_groups,omitempty"`
	AllowedDomains []string `protobuf:"bytes,5,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"`
	Rego           []string `protobuf:"bytes,6,rep,name=rego,proto3" json:"rego,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

func (*Policy) Descriptor() ([]byte, []int)

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetAllowedDomains

func (x *Policy) GetAllowedDomains() []string

func (*Policy) GetAllowedGroups

func (x *Policy) GetAllowedGroups() []string

func (*Policy) GetAllowedUsers

func (x *Policy) GetAllowedUsers() []string

func (*Policy) GetId

func (x *Policy) GetId() string

func (*Policy) GetName

func (x *Policy) GetName() string

func (*Policy) GetRego

func (x *Policy) GetRego() []string

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

func (x *Policy) ProtoReflect() protoreflect.Message

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

type Route

type Route struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To   string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// Deprecated: Do not use.
	AllowedUsers []string `protobuf:"bytes,4,rep,name=allowed_users,json=allowedUsers,proto3" json:"allowed_users,omitempty"`
	// Deprecated: Do not use.
	AllowedGroups []string `protobuf:"bytes,5,rep,name=allowed_groups,json=allowedGroups,proto3" json:"allowed_groups,omitempty"`
	// Deprecated: Do not use.
	AllowedDomains                   []string           `protobuf:"bytes,6,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"`
	Prefix                           string             `protobuf:"bytes,7,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Path                             string             `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"`
	Regex                            string             `protobuf:"bytes,9,opt,name=regex,proto3" json:"regex,omitempty"`
	CorsAllowPreflight               bool               `protobuf:"varint,10,opt,name=cors_allow_preflight,json=corsAllowPreflight,proto3" json:"cors_allow_preflight,omitempty"`
	AllowPublicUnauthenticatedAccess bool               `` /* 163-byte string literal not displayed */
	Timeout                          *duration.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"`
	AllowWebsockets                  bool               `protobuf:"varint,13,opt,name=allow_websockets,json=allowWebsockets,proto3" json:"allow_websockets,omitempty"`
	TlsSkipVerify                    bool               `protobuf:"varint,14,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"`
	TlsServerName                    string             `protobuf:"bytes,15,opt,name=tls_server_name,json=tlsServerName,proto3" json:"tls_server_name,omitempty"`
	TlsCustomCa                      string             `protobuf:"bytes,16,opt,name=tls_custom_ca,json=tlsCustomCa,proto3" json:"tls_custom_ca,omitempty"`
	TlsCustomCaFile                  string             `protobuf:"bytes,17,opt,name=tls_custom_ca_file,json=tlsCustomCaFile,proto3" json:"tls_custom_ca_file,omitempty"`
	TlsClientCert                    string             `protobuf:"bytes,18,opt,name=tls_client_cert,json=tlsClientCert,proto3" json:"tls_client_cert,omitempty"`
	TlsClientKey                     string             `protobuf:"bytes,19,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty"`
	TlsClientCertFile                string             `protobuf:"bytes,20,opt,name=tls_client_cert_file,json=tlsClientCertFile,proto3" json:"tls_client_cert_file,omitempty"`
	TlsClientKeyFile                 string             `protobuf:"bytes,21,opt,name=tls_client_key_file,json=tlsClientKeyFile,proto3" json:"tls_client_key_file,omitempty"`
	SetRequestHeaders                map[string]string  `` /* 203-byte string literal not displayed */
	RemoveRequestHeaders             []string           `protobuf:"bytes,23,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"`
	PreserveHostHeader               bool               `protobuf:"varint,24,opt,name=preserve_host_header,json=preserveHostHeader,proto3" json:"preserve_host_header,omitempty"`
	PassIdentityHeaders              bool               `protobuf:"varint,25,opt,name=pass_identity_headers,json=passIdentityHeaders,proto3" json:"pass_identity_headers,omitempty"`
	KubernetesServiceAccountToken    string             `` /* 153-byte string literal not displayed */
	Policies                         []*Policy          `protobuf:"bytes,27,rep,name=policies,proto3" json:"policies,omitempty"`
	Id                               string             `protobuf:"bytes,28,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

func (*Route) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetAllowPublicUnauthenticatedAccess

func (x *Route) GetAllowPublicUnauthenticatedAccess() bool

func (*Route) GetAllowWebsockets

func (x *Route) GetAllowWebsockets() bool

func (*Route) GetAllowedDomains deprecated

func (x *Route) GetAllowedDomains() []string

Deprecated: Do not use.

func (*Route) GetAllowedGroups deprecated

func (x *Route) GetAllowedGroups() []string

Deprecated: Do not use.

func (*Route) GetAllowedUsers deprecated

func (x *Route) GetAllowedUsers() []string

Deprecated: Do not use.

func (*Route) GetCorsAllowPreflight

func (x *Route) GetCorsAllowPreflight() bool

func (*Route) GetFrom

func (x *Route) GetFrom() string

func (*Route) GetId

func (x *Route) GetId() string

func (*Route) GetKubernetesServiceAccountToken

func (x *Route) GetKubernetesServiceAccountToken() string

func (*Route) GetName

func (x *Route) GetName() string

func (*Route) GetPassIdentityHeaders

func (x *Route) GetPassIdentityHeaders() bool

func (*Route) GetPath

func (x *Route) GetPath() string

func (*Route) GetPolicies

func (x *Route) GetPolicies() []*Policy

func (*Route) GetPrefix

func (x *Route) GetPrefix() string

func (*Route) GetPreserveHostHeader

func (x *Route) GetPreserveHostHeader() bool

func (*Route) GetRegex

func (x *Route) GetRegex() string

func (*Route) GetRemoveRequestHeaders

func (x *Route) GetRemoveRequestHeaders() []string

func (*Route) GetSetRequestHeaders

func (x *Route) GetSetRequestHeaders() map[string]string

func (*Route) GetTimeout

func (x *Route) GetTimeout() *duration.Duration

func (*Route) GetTlsClientCert

func (x *Route) GetTlsClientCert() string

func (*Route) GetTlsClientCertFile

func (x *Route) GetTlsClientCertFile() string

func (*Route) GetTlsClientKey

func (x *Route) GetTlsClientKey() string

func (*Route) GetTlsClientKeyFile

func (x *Route) GetTlsClientKeyFile() string

func (*Route) GetTlsCustomCa

func (x *Route) GetTlsCustomCa() string

func (*Route) GetTlsCustomCaFile

func (x *Route) GetTlsCustomCaFile() string

func (*Route) GetTlsServerName

func (x *Route) GetTlsServerName() string

func (*Route) GetTlsSkipVerify

func (x *Route) GetTlsSkipVerify() bool

func (*Route) GetTo

func (x *Route) GetTo() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

Jump to

Keyboard shortcuts

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