cli

package
v0.0.0-...-7f0bc7a Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Copyright = "(c) 2019 Alex Yermolaev, MIT License"
)

Variables

View Source
var (
	ExpDays     int
	SFile       string
	CAFile      string
	UpdateCerts bool
	Pfx         bool
)

Functions

func AddSubject

func AddSubject(c *cli.Context) error

func CallCertService

func CallCertService(c *cli.Context)

func DaemonSetup

func DaemonSetup(name string, usage string, action interface{}) *cli.App

func DeleteSubject

func DeleteSubject(c *cli.Context) error

func DoRequest

func DoRequest(c *cli.Context, f func(londopb.CertServiceClient) error) error

func GetAuthors

func GetAuthors() cli.Author

func GetCopyright

func GetCopyright() string

func GetExpiringSubjects

func GetExpiringSubjects(c *cli.Context)

func GetForTarget

func GetForTarget(c *cli.Context)

func GetSubject

func GetSubject(c *cli.Context)

func IssueToken

func IssueToken(c *cli.Context) error

func RenewSubject

func RenewSubject(c *cli.Context)

func SaveCert

func SaveCert(s *londopb.Subject) error

func UpdateToken

func UpdateToken(c *cli.Context) error

Types

type CertPath

type CertPath struct {
	Public  string
	Private string
}

func NewCertPath

func NewCertPath() *CertPath

type ExpiringSubjects

type ExpiringSubjects struct {
	Subject  string `yaml:"subject"`
	NotAfter string `yaml:"not_after"`
}

type Server

type Server struct {
	String string
}

func NewServer

func NewServer() *Server

type Token

type Token struct {
	File   string
	String string
}

func NewToken

func NewToken() *Token

func (*Token) Read

func (t *Token) Read(c *cli.Context) error

func (*Token) Save

func (t *Token) Save() error

Jump to

Keyboard shortcuts

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