sdl

package
v0.0.0-...-b3a6efc Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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

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

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