auth

package
v0.0.0-...-fd5dff8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateFileFlag = "cert-file"
	CertificateFileDesc = "path to .p12 file containing APNs certificate"

	CertificatePasswordFlag = "cert-password"
	CertificatePasswordDesc = "password to decrypt the .p12 file (optional)"
)
View Source
const (
	KeyFileFlag = "key-file"
	KeyFileDesc = "path to .p8 file containing APNs-enabled private key"

	KeyIdFlag = "key-id"
	KeyIdDesc = "key ID for the APNs-enabled private key"

	TeamIdFlag = "team-id"
	TeamIdDesc = "Apple Developer team ID"

	ExpiresAfterFlag    = "expires-after"
	ExpiresAfterDefault = 60 * time.Minute
	ExpiresAfterDesc    = "amount of time until the token expires"
)

Variables

This section is empty.

Functions

func BindCertificateAuthFlags

func BindCertificateAuthFlags(flags *pflag.FlagSet, certificateAuth *CertificateAuth)

func BindTokenAuthFlags

func BindTokenAuthFlags(flags *pflag.FlagSet, tokenAuth *TokenAuth)

func GetCommand

func GetCommand() *cobra.Command

func NewAuthGenerateTokenCommand

func NewAuthGenerateTokenCommand() *cobra.Command

Types

type AuthGenerateTokenCmd

type AuthGenerateTokenCmd struct {
	TokenAuth TokenAuth
	// contains filtered or unexported fields
}

func (*AuthGenerateTokenCmd) Prepare

func (cmd *AuthGenerateTokenCmd) Prepare(args []string) error

func (*AuthGenerateTokenCmd) Run

func (cmd *AuthGenerateTokenCmd) Run() error

type CertificateAuth

type CertificateAuth struct {
	CertificateFile     string
	CertificatePassword string
}

type TokenAuth

type TokenAuth struct {
	KeyFile      string
	KeyId        string
	TeamId       string
	ExpiresAfter time.Duration
}

Jump to

Keyboard shortcuts

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