polling

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigMapName = "default/branch-based-planner"
View Source
const DefaultPollingInterval = time.Second * 30

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Resources       []client.ObjectKey
	SecretNamespace string
	SecretName      string
}

type Option

type Option func(s *Server) error

func WithBranchPollingInterval

func WithBranchPollingInterval(interval time.Duration) Option

func WithClusterClient

func WithClusterClient(clusterClient client.Client) Option

func WithConfigMap

func WithConfigMap(configMapName string) Option

func WithLogger

func WithLogger(log logr.Logger) Option

func WithPollingInterval

func WithPollingInterval(interval time.Duration) Option

type Server

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

func New

func New(options ...Option) (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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