herd

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 46 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Herd

type Herd struct {
	sync.RWMutex // Protect map and slice mutations.
	// contains filtered or unexported fields
}

func NewHerd

func NewHerd(imageServerAddress string, objectServer objectserver.ObjectServer,
	metricsDir *tricorder.DirectorySpec, logger log.DebugLogger) *Herd

func (*Herd) AddHtmlWriter

func (herd *Herd) AddHtmlWriter(htmlWriter HtmlWriter)

func (*Herd) ClearSafetyShutoff

func (herd *Herd) ClearSafetyShutoff(hostname string,
	authInfo *srpc.AuthInformation) error

func (*Herd) ConfigureSubs

func (herd *Herd) ConfigureSubs(configuration subproto.Configuration) error

func (*Herd) DisableUpdates

func (herd *Herd) DisableUpdates(username, reason string) error

func (*Herd) EnableUpdates

func (herd *Herd) EnableUpdates() error

func (*Herd) ForceDisruptiveUpdate added in v0.3.2

func (herd *Herd) ForceDisruptiveUpdate(hostname string,
	authInfo *srpc.AuthInformation) error

func (*Herd) GetDefaultImage

func (herd *Herd) GetDefaultImage() string

func (*Herd) GetInfoForSubs added in v0.3.2

func (herd *Herd) GetInfoForSubs(request domproto.GetInfoForSubsRequest) (
	[]domproto.SubInfo, error)

func (*Herd) GetSubsConfiguration

func (herd *Herd) GetSubsConfiguration() subproto.Configuration

func (*Herd) ListSubs added in v0.3.2

func (herd *Herd) ListSubs(request domproto.ListSubsRequest) ([]string, error)

func (*Herd) LockWithTimeout

func (herd *Herd) LockWithTimeout(timeout time.Duration)

func (*Herd) MdbUpdate

func (herd *Herd) MdbUpdate(mdb *mdb.Mdb)

func (*Herd) PollNextSub

func (herd *Herd) PollNextSub() bool

func (*Herd) RLockWithTimeout

func (herd *Herd) RLockWithTimeout(timeout time.Duration)

func (*Herd) SetDefaultImage

func (herd *Herd) SetDefaultImage(imageName string) error

func (*Herd) StartServer

func (herd *Herd) StartServer(portNum uint, daemon bool) error

type HtmlWriter

type HtmlWriter interface {
	WriteHtml(writer io.Writer)
}

type Sub

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

func (*Sub) String

func (sub *Sub) String() string

Jump to

Keyboard shortcuts

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