command

package
v0.0.0-...-b8c49a7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options struct {
	S3Bucket   string `long:"s3-bucket" description:"S3 Bucket Name" required:"true"`
	S3KMSKeyID string `long:"s3-kms-key" description:"KMS Key ID for S3 SSE-KMS"`
	Email      string `long:"email" description:"Email Address"`
}

Options for the global command.

Functions

func NewAWSSession

func NewAWSSession() *session.Session

func NewStore

func NewStore(email, s3Bucket, s3KMSKeyID string) (*agent.Store, error)

NewStore initializes agent.Store for cli apps.

Types

type CertCommand

type CertCommand struct {
	CommonName string   `long:"cn" description:"CommonName to be issued"`
	Domains    []string `long:"domain" description:"Domains to be issued as Subject Alternative Names"`
	CreateKey  bool     `long:"create-key" description:"Create a new keypair"`
	RSAKeySize int      `` /* 130-byte string literal not displayed */
}

func (*CertCommand) Execute

func (c *CertCommand) Execute(args []string) error

type CertService

type CertService struct {
	Email      string
	CommonName string
	Domains    []string
	CreateKey  bool
	RSAKeySize int
	Store      *agent.Store
}

func (*CertService) Run

func (svc *CertService) Run() error

type Certificate

type Certificate struct {
	NotBefore time.Time `json:"not_before"`
	NotAfter  time.Time `json:"not_after"`
	SAN       []string  `json:"san"`
}

type Domain

type Domain struct {
	Email       string      `json:"email"`
	Domain      string      `json:"domain"`
	Certificate Certificate `json:"certificate"`
}

type LsCommand

type LsCommand struct {
	Format string `long:"format" description:"Format the output" default:"json"`
}

func (*LsCommand) Execute

func (c *LsCommand) Execute(args []string) error

type LsService

type LsService struct {
	Filer agent.Filer
}

func (*LsService) FetchData

func (svc *LsService) FetchData() ([]Domain, error)

func (*LsService) WriteTo

func (svc *LsService) WriteTo(format string, w io.Writer) error

type RegCommand

type RegCommand struct {
	AgreeTOS bool `long:"agree-tos" description:"Agree with the ToS"`
	Override bool `long:"override the registration if it already exists with a new key"`
}

func (*RegCommand) Execute

func (c *RegCommand) Execute(args []string) error

type SyncCommand

type SyncCommand struct {
	Domain string `long:"domain" description:"Domain to be synced" required:"true"`
	// contains filtered or unexported fields
}

func (*SyncCommand) Execute

func (c *SyncCommand) Execute(args []string) error

type UploadCommand

type UploadCommand struct {
	Domain string `long:"domain" description:"Domain to be uploaded"`
}

func (*UploadCommand) Execute

func (c *UploadCommand) Execute(args []string) error

type UploadService

type UploadService struct {
	Domain string
	Email  string

	S3Filer *agent.S3Filer
	ACMconn *acm.ACM
}

func (*UploadService) Run

func (svc *UploadService) Run() (string, error)

Jump to

Keyboard shortcuts

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