Documentation ¶
Index ¶
- Constants
- func BindCertificateAuthFlags(flags *pflag.FlagSet, certificateAuth *CertificateAuth)
- func BindTokenAuthFlags(flags *pflag.FlagSet, tokenAuth *TokenAuth)
- func GetCommand() *cobra.Command
- func NewAuthGenerateTokenCommand() *cobra.Command
- type AuthGenerateTokenCmd
- type CertificateAuth
- type TokenAuth
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 GetCommand ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.