setuputils

package
v0.18.42 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 22 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

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 {
	LoggingPrefix string
	SetupFunc     SetupFunc
	ExitOnError   bool
	CustomCtx     context.Context
}

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