signctl

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegCtl

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

func NewRegCtl

func NewRegCtl(c client.Client, regName, namespace string) *RegCtl

NewRegCtl is a controller for registry if registryName or registryNamespace is empty string, RegCtl is nil

func (*RegCtl) GetEndpoint

func (r *RegCtl) GetEndpoint() string

func (*RegCtl) GetHostname

func (r *RegCtl) GetHostname() string

func (*RegCtl) GetNotaryEndpoint

func (r *RegCtl) GetNotaryEndpoint() string

type SigningController

type SigningController struct {
	ImageSigner *apiv1.ImageSigner
	Regctl      *RegCtl
	Scheme      *runtime.Scheme
	// contains filtered or unexported fields
}

func NewSigningController

func NewSigningController(c client.Client, scheme *runtime.Scheme, signer *apiv1.ImageSigner, registryName, registryNamespace string) *SigningController

NewSigningController is a controller for image signing. if registryName or registryNamespace is empty string, RegCtl is nil if requestNamespace is empty string, get operator's namepsace

func (*SigningController) CreateOwnerRole

func (c *SigningController) CreateOwnerRole() error

func (*SigningController) CreateOwnerRoleBinding

func (c *SigningController) CreateOwnerRoleBinding() error

func (*SigningController) CreateRootKey

func (c *SigningController) CreateRootKey(owner *apiv1.ImageSigner, scheme *runtime.Scheme) (*apiv1.TrustKey, error)

func (*SigningController) CreateSignerKeyRole

func (c *SigningController) CreateSignerKeyRole() error

func (*SigningController) CreateSignerKeyRoleBinding

func (c *SigningController) CreateSignerKeyRoleBinding() error

func (*SigningController) IsExistOwnerRole

func (c *SigningController) IsExistOwnerRole() bool

func (*SigningController) IsExistOwnerRoleBinding

func (c *SigningController) IsExistOwnerRoleBinding() bool

func (*SigningController) IsExistSignerKeyRole

func (c *SigningController) IsExistSignerKeyRole() bool

func (*SigningController) IsExistSignerKeyRoleBinding

func (c *SigningController) IsExistSignerKeyRoleBinding() bool

func (*SigningController) SignImage

func (c *SigningController) SignImage(signerKey *apiv1.SignerKey, img *image.Image, notaryURL string, ca []byte) error

Jump to

Keyboard shortcuts

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