integrity

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ExperimentalEnv = "COSIGN_EXPERIMENTAL"

Variables

This section is empty.

Functions

func InitDocker

func InitDocker(awsClient *clients.AwsClient) error

func IsExperimentalEnv

func IsExperimentalEnv() bool

func ReadFile

func ReadFile(path string) ([]byte, error)

func SaveTextToFile

func SaveTextToFile(text string, path string) error

Types

type Auth

type Auth struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type DockerAuth

type DockerAuth struct {
	Auths map[string]Auth `json:"auths"`
}

type Hash

type Hash interface {
	GenerateIdentity(path string) (string, error)
}

type IdentityGenerator

type IdentityGenerator interface {
	GenerateIdentity(path string) (string, error)
}

type Sha256

type Sha256 struct{}

func (*Sha256) GenerateIdentity

func (o *Sha256) GenerateIdentity(path string) (string, error)

Jump to

Keyboard shortcuts

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