options

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCredOptions

type GetCredOptions struct {
	Url         string
	Username    string
	Password    string
	JWT         string
	TrustBundle string
}

SignOptions is the top level wrapper for the sign command.

func (*GetCredOptions) AddFlags

func (o *GetCredOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type Interface

type Interface interface {
	// AddFlags adds this options' flags to the cobra command.
	AddFlags(cmd *cobra.Command)
}

type JWTOptions

type JWTOptions struct {
	Config      string
	HeaderPath  string
	PayloadPath string
}

SignOptions is the top level wrapper for the sign command.

func (*JWTOptions) AddFlags

func (o *JWTOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type JarOptions

type JarOptions struct {
	SectionsOnly    bool
	InlineSignature bool
	APKV2Present    bool
}

SignOptions is the top level wrapper for the sign command.

func (*JarOptions) AddFlags

func (o *JarOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type PDFOptions

type PDFOptions struct {
	Name     string
	Location string
	Reason   string
	Contact  string
	TSA      string
}

SignOptions is the top level wrapper for the sign command.

func (*PDFOptions) AddFlags

func (o *PDFOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type RootOptions

type RootOptions struct {
	OutputFile string
	Verbose    bool
}

RootOptions define flags and options for the root vsign cli.

func (*RootOptions) AddFlags

func (o *RootOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type SignOptions

type SignOptions struct {
	Config          string
	ImageRef        string
	OutputSignature string
	PayloadPath     string
	Digest          string
	Mechanism       int
	SigType         string
	Jar             JarOptions
	PDF             PDFOptions
}

SignOptions is the top level wrapper for the sign command.

func (*SignOptions) AddFlags

func (o *SignOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

type VerifyOptions

type VerifyOptions struct {
	Config        string
	SignaturePath string // TODO: this should be the root output file arg.
	PayloadPath   string
	PublicKeyPath string
	Digest        string
	Force         bool
}

SignOptions is the top level wrapper for the sign command.

func (*VerifyOptions) AddFlags

func (o *VerifyOptions) AddFlags(cmd *cobra.Command)

AddFlags implements Interface

Jump to

Keyboard shortcuts

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