setuputils

package
v1.2.20 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 23 Imported by: 15

Documentation

Index

Constants

View Source
const (
	PodNamespace = "POD_NAMESPACE"
)

Variables

This section is empty.

Functions

func Main

func Main(opts SetupOpts) error

func StartReportingUsage added in v0.20.8

func StartReportingUsage(ctx context.Context, usagePayloadReader client.UsagePayloadReader, product string, signatureManager signature.SignatureManager) <-chan error

does not block the current goroutine

Types

type SetupFunc

type SetupFunc func(ctx context.Context,
	kubeCache kube.SharedCache,
	inMemoryCache memory.InMemoryResourceCache,
	settings *v1.Settings) error

tell us how to setup

type SetupOpts

type SetupOpts struct {
	LoggerName  string
	SetupFunc   SetupFunc
	ExitOnError bool
	CustomCtx   context.Context

	// optional - if present, add these values in each JSON log line in the gloo pod.
	// By default, we already log the gloo version.
	LoggingPrefixVals []interface{}
	// optional - if present, report usage with the payload this discovers
	// should really only provide it in very intentional places- in the gloo pod, and in glooctl
	// otherwise, we'll provide redundant copies of the usage data
	UsageReporter client.UsagePayloadReader
}

type SetupSyncer

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

func NewSetupSyncer

func NewSetupSyncer(settingsRef core.ResourceRef, setupFunc SetupFunc) *SetupSyncer

func (*SetupSyncer) Sync

func (s *SetupSyncer) Sync(ctx context.Context, snap *v1.SetupSnapshot) error

Jump to

Keyboard shortcuts

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