sign

package
v0.0.0-...-640984e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachImageSignature

func AttachImageSignature(s v1beta1.TaskResource, signer *Signer, tr *pipelinev1beta1.TaskRun, l *zap.SugaredLogger) error

Types

type Critical

type Critical struct {
	Identity Identity `json:"identity`
	Image    Image    `json:"image"`
	Type     string   `json:"type"`
}

type Identity

type Identity struct {
	DockerReference string `json:"docker-reference"`
}

type Image

type Image struct {
	DockerManifestDigest string `json:"Docker-manifest-digest"`
}

type MySignature

type MySignature struct {
	// contains filtered or unexported fields
}

func (*MySignature) Digest

func (s *MySignature) Digest() (v1.Hash, error)

func (*MySignature) MediaType

func (s *MySignature) MediaType() (types.MediaType, error)

func (*MySignature) Size

func (s *MySignature) Size() (int64, error)

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner() (*Signer, error)

func (*Signer) Sign

func (s *Signer) Sign(i interface{}) ([]byte, []byte, error)

func (*Signer) SignReader

func (s *Signer) SignReader(r io.Reader) ([]byte, error)

type SimpleSigning

type SimpleSigning struct {
	Critical Critical
	Optional map[string]interface{}
}

Jump to

Keyboard shortcuts

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