sdl

package
v0.14.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManifestVersion added in v0.7.8

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.7.8

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)
}

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

Jump to

Keyboard shortcuts

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