secrets

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create accepts a CreateOpts struct and creates a new secret using the values provided.

Types

type CreateOpts

type CreateOpts struct {
	Expiration *time.Time  `json:"-"`
	Name       string      `json:"name" required:"true"`
	Payload    PayloadOpts `json:"payload" required:"true"`
}

CreateOpts represents options used to create a secret.

func (CreateOpts) ToSecretCreateMap

func (opts CreateOpts) ToSecretCreateMap() (map[string]interface{}, error)

ToSecretCreateMap builds a request body from CreateOpts.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToSecretCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder allows extensions to add additional parameters to the request.

type PayloadOpts

type PayloadOpts struct {
	CertificateChain string `json:"certificate_chain" required:"true"`
	Certificate      string `json:"certificate" required:"true"`
	PrivateKey       string `json:"private_key" required:"true"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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