resources

package
v0.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewResources = func(logger log.Logger, resourceNames []string) (AbstractResources, error) {
	logger.Info("creating NoResources", log.Any("resourceNames", resourceNames))
	return &NoResources{}, nil
}

Functions

This section is empty.

Types

type AbstractResources

type AbstractResources interface {
	GetResource(string) (string, error)

	RunWatcher()
	OutdatedCh() <-chan struct{}
	Close()
}

type EmbeddedResources

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

func NewEmbeddedResources

func NewEmbeddedResources(resourceNames []string) (*EmbeddedResources, error)

func (*EmbeddedResources) Close

func (r *EmbeddedResources) Close()

func (*EmbeddedResources) GetResource

func (r *EmbeddedResources) GetResource(resName string) (string, error)

func (*EmbeddedResources) OutdatedCh

func (r *EmbeddedResources) OutdatedCh() <-chan struct{}

func (*EmbeddedResources) RunWatcher

func (r *EmbeddedResources) RunWatcher()

type NoResources

type NoResources struct{}

func (*NoResources) Close

func (r *NoResources) Close()

func (*NoResources) GetResource

func (r *NoResources) GetResource(string) (string, error)

func (*NoResources) OutdatedCh

func (r *NoResources) OutdatedCh() <-chan struct{}

func (*NoResources) RunWatcher

func (r *NoResources) RunWatcher()

type Resourceable

type Resourceable interface {
	ResourcesObj() AbstractResources
}

Jump to

Keyboard shortcuts

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