simple

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFormatter

func NewFormatter() (formats.Payloader, error)

Types

type Critical

type Critical struct {
	Identity map[string]string
	Image    map[string]string
	Type     string
}

type Simple

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

func NewSimpleStruct

func NewSimpleStruct() Simple

func (*Simple) ImageName

func (s *Simple) ImageName() string

type SimpleSigning

type SimpleSigning struct {
}

SimpleSigning is a formatter that uses the RedHat simple signing format https://www.redhat.com/en/blog/container-image-signing

func (*SimpleSigning) CreatePayload

func (i *SimpleSigning) CreatePayload(obj interface{}) (interface{}, error)

CreatePayload implements the Payloader interface.

func (*SimpleSigning) Type

func (i *SimpleSigning) Type() formats.PayloadType

func (*SimpleSigning) Wrap added in v0.3.0

func (i *SimpleSigning) Wrap() bool

Jump to

Keyboard shortcuts

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