fetcher

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT"

Variables

This section is empty.

Functions

func SetFetchConfigFlags

func SetFetchConfigFlags(fs *pflag.FlagSet)

Types

type Fetcher

type Fetcher struct {
	clusterconfig.ClusterConfig
	// contains filtered or unexported fields
}

Fetcher defines configuration to fetch completion datas

func NewFetcher

func NewFetcher(fetchConfigCli *FetcherCli) *Fetcher

func (*Fetcher) GetResources

func (*Fetcher) GetStats

func (f *Fetcher) GetStats(ctx context.Context) ([]*store.Stats, error)

func (*Fetcher) LoadFetcherState

func (f *Fetcher) LoadFetcherState() error

func (*Fetcher) SaveFetcherState

func (f *Fetcher) SaveFetcherState() error

type FetcherCli

type FetcherCli struct {
	*clusterconfig.ClusterConfigCli
	HttpEndpoint         string
	FzfNamespace         string
	FetcherCachePath     string
	MinimumCache         time.Duration
	PortForwardLocalPort int
}

func GetFetchConfigCli

func GetFetchConfigCli() FetcherCli

type FetcherState

type FetcherState struct {
	ContextStates map[string]*fetcherContextState
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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