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 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
}
Click to show internal directories.
Click to hide internal directories.