resource

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	URL string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, fs afs.Service, URL string, refreshFrequency time.Duration) (*Service, error)

func (*Service) AddResource

func (s *Service) AddResource(key string, aResource *view.Resource)

func (*Service) Has

func (s *Service) Has(key string) bool

func (*Service) Init

func (s *Service) Init(ctx context.Context) error

func (*Service) IsCheckDue

func (s *Service) IsCheckDue(t time.Time) bool

func (*Service) Lookup

func (s *Service) Lookup(key string) (*version.Resource, error)

func (*Service) Substitutes

func (s *Service) Substitutes() map[string]view.Substitutes

func (*Service) SyncChanges

func (s *Service) SyncChanges(ctx context.Context) (bool, error)

Jump to

Keyboard shortcuts

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