client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACME

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

func NewACME

func NewACME(email string, acmeURL string, s3Client *S3) (*ACME, error)

func (*ACME) ObtainCertificate

func (c *ACME) ObtainCertificate(commonName string, otherNames []string) (*acme.CertificateResource, error)

type S3

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

func NewS3

func NewS3(session *session.Session, region, bucketName, bucketPrefix string, keyId string, maxObjectSize int) *S3

func (*S3) GetEncryptedObject

func (client *S3) GetEncryptedObject(objectPath string) ([]byte, error)

func (*S3) GetUnencryptedObject

func (client *S3) GetUnencryptedObject(objectPath string) ([]byte, error)

func (*S3) IsAccessDenied

func (client *S3) IsAccessDenied(err error) bool

func (*S3) IsNoSuchKey

func (client *S3) IsNoSuchKey(err error) bool

func (*S3) PutEncryptedObject

func (client *S3) PutEncryptedObject(objectPath string, objectBytes []byte) error

func (*S3) PutUnencryptedObject

func (client *S3) PutUnencryptedObject(objectPath string, objectBytes []byte) error

type User

type User struct {
	Email        string
	Registration *acme.RegistrationResource
	// contains filtered or unexported fields
}

func UserFromJSONBytes

func UserFromJSONBytes(encoded []byte) (*User, error)

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (*User) GetRegistration

func (u *User) GetRegistration() *acme.RegistrationResource

func (*User) Marshal

func (u *User) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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