common

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedTLSVersions = map[string]struct{}{
	"TLS_AUTO": {},
	"TLSv1_0":  {},
	"TLSv1_1":  {},
	"TLSv1_2":  {},
	"TLSv1_3":  {},
}
View Source
var TLSVersionsWithConfigurableCipherSuites = map[string]struct{}{

	"":         {},
	"TLS_AUTO": {},

	"TLSv1_0": {},
	"TLSv1_1": {},
	"TLSv1_2": {},
}

Functions

func AddressTypeForAddress

func AddressTypeForAddress(address string) string

AddressTypeForAddress returns whether envoy should treat the given address as a static ip or as a DNS name

func CreateLogger added in v0.5.0

func CreateLogger(output io.Writer, logLevel string, asJSON bool, name string) hclog.Logger

func DefaultTLSCipherSuites

func DefaultTLSCipherSuites() []string

func FlagUsage added in v0.5.0

func FlagUsage(usage string, flags *flag.FlagSet) string

func GetConsulTokenOr added in v0.5.0

func GetConsulTokenOr(tokenFlag string) string

func LogAndDie added in v0.5.0

func LogAndDie(logger hclog.Logger, message string, err error) int

func LogSuccess added in v0.5.0

func LogSuccess(logger hclog.Logger, message string) int

func SupportedTLSCipherSuite

func SupportedTLSCipherSuite(cipherSuite string) bool

func SynchronizeWriter

func SynchronizeWriter(writer io.Writer) io.Writer

Types

type ArrayFlag added in v0.5.0

type ArrayFlag []string

func (*ArrayFlag) Set added in v0.5.0

func (i *ArrayFlag) Set(value string) error

func (*ArrayFlag) String added in v0.5.0

func (i *ArrayFlag) String() string

type CommonCLI added in v0.5.0

type CommonCLI struct {
	UI cli.Ui

	Flags *flag.FlagSet
	// contains filtered or unexported fields
}

func NewCommonCLI added in v0.5.0

func NewCommonCLI(ctx context.Context, help, synopsis string, ui cli.Ui, logOutput io.Writer, name string) *CommonCLI

func (*CommonCLI) Context added in v0.5.0

func (c *CommonCLI) Context() context.Context

func (*CommonCLI) Error added in v0.5.0

func (c *CommonCLI) Error(message string, err error) int

func (*CommonCLI) Help added in v0.5.0

func (c *CommonCLI) Help() string

func (*CommonCLI) LogLevel added in v0.5.0

func (c *CommonCLI) LogLevel() string

func (*CommonCLI) Logger added in v0.5.0

func (c *CommonCLI) Logger(name string) hclog.Logger

func (*CommonCLI) Output added in v0.5.0

func (c *CommonCLI) Output() io.Writer

func (*CommonCLI) Parse added in v0.5.0

func (c *CommonCLI) Parse(args []string) error

func (*CommonCLI) Success added in v0.5.0

func (c *CommonCLI) Success(message string) int

func (*CommonCLI) Synopsis added in v0.5.0

func (c *CommonCLI) Synopsis() string

type ConsulNamespaceMapper

type ConsulNamespaceMapper func(namespace string) string

type ServiceNameIndex

type ServiceNameIndex struct {
	// contains filtered or unexported fields
}

func NewServiceNameIndex

func NewServiceNameIndex() *ServiceNameIndex

func (*ServiceNameIndex) Add

func (i *ServiceNameIndex) Add(names ...api.CompoundServiceName)

func (*ServiceNameIndex) All

func (*ServiceNameIndex) Diff

func (i *ServiceNameIndex) Diff(other *ServiceNameIndex) (added []api.CompoundServiceName, removed []api.CompoundServiceName)

func (*ServiceNameIndex) Exists

func (i *ServiceNameIndex) Exists(name api.CompoundServiceName) bool

func (*ServiceNameIndex) Remove

func (i *ServiceNameIndex) Remove(names ...api.CompoundServiceName)

Jump to

Keyboard shortcuts

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