client

package
v0.0.0-...-617b798 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertReq

type CertReq struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	SignRequest string `json:"req"`
	Certificate string `json:"certificate"`
	Token       string `json:"token"`
	CA          string `json:"ca"`
}

type CertificateAPI

type CertificateAPI struct {
	Config *ClientCommand
	// contains filtered or unexported fields
}

CertificateAPI interacts keyvault service /api/v*/certificate

func (*CertificateAPI) Create

func (c *CertificateAPI) Create(name string, csr []byte) error

func (*CertificateAPI) Read

func (c *CertificateAPI) Read(name string) (Resp, error)

type CertificateInitiator

type CertificateInitiator struct {
	Config *ClientCommand
}

CertificateInitiator initiates client certificates

func (*CertificateInitiator) Init

func (c *CertificateInitiator) Init() []byte

type ClientCommand

type ClientCommand struct {
	Action        string // which action to take
	ClientName    string // will be used for OU property
	ConfigDir     string // location to store generated certs, tokens
	Configuration configuration.Configuration
	// contains filtered or unexported fields
}

func (ClientCommand) Print

func (c ClientCommand) Print()

func (*ClientCommand) Run

func (c *ClientCommand) Run()

type Resp

type Resp struct {
	Code    int    `json:"code"`
	Message string `json:"msg"`
	CertReq `json:"data"`
}

Jump to

Keyboard shortcuts

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