sdl

package
v0.23.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 20 Imported by: 9

Documentation

Index

Constants

View Source
const (
	StorageEphemeral           = "ephemeral"
	StorageAttributePersistent = "persistent"
	StorageAttributeClass      = "class"
	StorageAttributeMount      = "mount"
	StorageAttributeReadOnly   = "readOnly" // we might not need it at this point of time
	StorageClassDefault        = "default"
)

Variables

This section is empty.

Functions

func ManifestVersion added in v0.22.0

func ManifestVersion(manifest manifest.Manifest) ([]byte, error)

ManifestVersion calculates the identifying deterministic hash for an SDL. Sha256 returns 32 byte sum of the SDL.

func Version added in v0.22.0

func Version(s SDL) ([]byte, error)

Version creates the deterministic Deployment Version hash from the SDL.

Types

type SDL

type SDL interface {
	DeploymentGroups() ([]*dtypes.GroupSpec, error)
	Manifest() (manifest.Manifest, error)
	// contains filtered or unexported methods
}

SDL is the interface which wraps Validate, Deployment and Manifest methods

func Read

func Read(buf []byte) (SDL, error)

Read reads buffer data and returns SDL instance

func ReadFile

func ReadFile(path string) (SDL, error)

ReadFile read from given path and returns SDL instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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