ssh_ca_client

package
v0.0.0-...-5e7d0e9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostToSlack

func PostToSlack(slackUrl, slackChannel, msg string) error

Types

type CertRequest

type CertRequest struct {
	// contains filtered or unexported fields
}

func MakeCertRequest

func MakeCertRequest() CertRequest

func (*CertRequest) BuildWebRequest

func (req *CertRequest) BuildWebRequest(signedCert []byte) url.Values

func (*CertRequest) EncodeAsCertificate

func (req *CertRequest) EncodeAsCertificate() (*ssh.Certificate, error)

func (*CertRequest) PostToWeb

func (req *CertRequest) PostToWeb(requestParameters url.Values) (string, bool, error)

func (*CertRequest) SetConfig

func (req *CertRequest) SetConfig(config ssh_ca_util.RequesterConfig) error

func (*CertRequest) SetEnvironment

func (req *CertRequest) SetEnvironment(environment string) error

func (*CertRequest) SetPrincipalsFromString

func (req *CertRequest) SetPrincipalsFromString(principalsStr string) error

func (*CertRequest) SetPublicKey

func (req *CertRequest) SetPublicKey(pubKey ssh.PublicKey, keyID string) error

func (*CertRequest) SetReason

func (req *CertRequest) SetReason(reason string) error

func (*CertRequest) SetValidAfter

func (req *CertRequest) SetValidAfter(validAfter time.Duration) error

func (*CertRequest) SetValidBefore

func (req *CertRequest) SetValidBefore(validBefore time.Duration) error

func (*CertRequest) Validate

func (req *CertRequest) Validate() error

type SigningRequest

type SigningRequest struct {
	// contains filtered or unexported fields
}

func MakeSigningRequest

func MakeSigningRequest(cert ssh.Certificate, requestID string, config ssh_ca_util.SignerConfig) SigningRequest

func (*SigningRequest) BuildWebRequest

func (req *SigningRequest) BuildWebRequest() url.Values

func (*SigningRequest) DeleteToWeb

func (req *SigningRequest) DeleteToWeb(requestParameters url.Values) error

func (*SigningRequest) PostToWeb

func (req *SigningRequest) PostToWeb(requestParameters url.Values) error

type SlackWebhookInput

type SlackWebhookInput struct {
	Text    string `json:"text"`
	Channel string `json:"channel"`
}

Jump to

Keyboard shortcuts

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