cert

package
v0.0.0-...-5169047 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const FlagGroup = "group"
View Source
const FlagIpSans = "ip-sans"
View Source
const FlagKeyBitSize = "key-bit-size"
View Source
const FlagKeyType = "key-type"
View Source
const FlagOrganisation = "organisation"
View Source
const FlagOwner = "owner"
View Source
const FlagSanHosts = "san-hosts"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	Log *logrus.Entry
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Entry, i *instanceToken.InstanceToken) *Cert

func (*Cert) BitSize

func (c *Cert) BitSize() int

func (*Cert) CommonName

func (c *Cert) CommonName() string

func (*Cert) Data

func (c *Cert) Data() *pem.Block

func (*Cert) DeleteFile

func (c *Cert) DeleteFile(path string) error

func (*Cert) Destination

func (c *Cert) Destination() string

func (*Cert) EnsureKey

func (c *Cert) EnsureKey() error

Ensure -key.pem exists, and has correct size and key type

func (*Cert) Group

func (c *Cert) Group() string

func (*Cert) IPSans

func (c *Cert) IPSans() []string

func (*Cert) InstanceToken

func (c *Cert) InstanceToken() *instanceToken.InstanceToken

func (*Cert) KeyType

func (c *Cert) KeyType() string

func (*Cert) Organisation

func (c *Cert) Organisation() []string

func (*Cert) Owner

func (c *Cert) Owner() string

func (*Cert) PemSize

func (c *Cert) PemSize() int

func (*Cert) RequestCertificate

func (c *Cert) RequestCertificate() error

func (*Cert) Role

func (c *Cert) Role() string

func (*Cert) RunCert

func (c *Cert) RunCert() error

func (*Cert) SanHosts

func (c *Cert) SanHosts() []string

func (*Cert) SetBitSize

func (c *Cert) SetBitSize(size int)

func (*Cert) SetCommonName

func (c *Cert) SetCommonName(name string)

func (*Cert) SetData

func (c *Cert) SetData(data *pem.Block)

func (*Cert) SetDestination

func (c *Cert) SetDestination(destination string)

func (*Cert) SetGroup

func (c *Cert) SetGroup(group string)

func (*Cert) SetIPSans

func (c *Cert) SetIPSans(ips []string)

func (*Cert) SetInstanceToken

func (c *Cert) SetInstanceToken(i *instanceToken.InstanceToken)

func (*Cert) SetKeyType

func (c *Cert) SetKeyType(keyType string)

func (*Cert) SetOrganisation

func (c *Cert) SetOrganisation(org []string)

func (*Cert) SetOwner

func (c *Cert) SetOwner(owner string)

func (*Cert) SetPemSize

func (c *Cert) SetPemSize(size int)

func (*Cert) SetRole

func (c *Cert) SetRole(role string)

func (*Cert) SetSanHosts

func (c *Cert) SetSanHosts(hosts []string)

func (*Cert) WritePermissions

func (c *Cert) WritePermissions(path string, perm os.FileMode) error

Jump to

Keyboard shortcuts

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