gcpwatch

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPollInterval = 10 * time.Minute
	DefaultMinInterval  = time.Second
	DefaultInitialDelay = time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerRegistration

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

func (*ControllerRegistration) Add

todo acpana expose reason why not added?

type DependencyTracker

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

func NewDependencyTracker

func NewDependencyTracker(fetcher Fetcher) *DependencyTracker

func (*DependencyTracker) PollForever

func (t *DependencyTracker) PollForever(ctx context.Context, pc *PollConfig)

func (*DependencyTracker) RegisterController

func (t *DependencyTracker) RegisterController(key string, queue chan event.GenericEvent) *ControllerRegistration

type Fetcher

type Fetcher interface {
	IsSupported(kind string, external string) bool
	Fetch(ctx context.Context, kind string, external string) (*ResourceInfo, error)
}

type IAMFetcher

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

func NewIAMFetcher

func NewIAMFetcher(ctx context.Context, config *config.ControllerConfig) (*IAMFetcher, error)

todo acpana: house in direct?

func (*IAMFetcher) Fetch

func (f *IAMFetcher) Fetch(ctx context.Context, kind string, external string) (*ResourceInfo, error)

func (*IAMFetcher) IsSupported

func (f *IAMFetcher) IsSupported(kind string, external string) bool

type PollConfig

type PollConfig struct {
	InitialDelay time.Duration
	MinInterval  time.Duration
	PollInterval time.Duration
}

type ResourceInfo

type ResourceInfo struct {
	Etag string
}

Jump to

Keyboard shortcuts

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