facade

package
v0.0.0-...-0ab759d Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session interface {
	// Allocates storage and
	CreateSession(session datamodel.Session) error

	// Deletes the requested volume and session allocation
	// If hurry, there is no stage-out attempted
	// Unmount is always attempted before deleting the buffer
	DeleteSession(sessionName datamodel.SessionName, hurry bool) error

	// Update the session and trigger requested data copy in
	CopyDataIn(sessionName datamodel.SessionName) error

	// Update session hosts and attach volumes as needed
	Mount(sessionName datamodel.SessionName, computeNodes []string, loginNodes []string) error

	// Attempt to detach volumes
	Unmount(sessionName datamodel.SessionName) error

	// Update the session and trigger requested data copy out
	CopyDataOut(sessionName datamodel.SessionName) error

	// Get brick availability by pool
	GetPools() ([]datamodel.PoolInfo, error)

	// Get requested session
	//
	// Error if session does not exist
	GetSession(sessionName datamodel.SessionName) (datamodel.Session, error)

	// Get all sessions
	GetAllSessions() ([]datamodel.Session, error)

	// Generate ansible test dir
	GenerateAnsible(sessionName datamodel.SessionName) (string, error)
}

Each volume has an associated primary brick that is responsible for responding to any actions All the calls block until they are complete, or an error occurs

type SessionActionHandler

type SessionActionHandler interface {
	ProcessSessionAction(action datamodel.SessionAction)
	RestoreSession(session datamodel.Session)
}

Jump to

Keyboard shortcuts

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