v1

package
v0.99.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAsymmetricOrder

func CreateAsymmetricOrder(t *testing.T, client *gophercloud.ServiceClient) (*orders.Order, error)

CreateAsymmetric Order will create a random asymmetric order. An error will be returned if the order could not be created.

func CreateCertificate

func CreateCertificate(t *testing.T, passphrase string) ([]byte, []byte, error)

CreateCertificate will create a random certificate. A fatal error will be returned if creation failed. https://golang.org/src/crypto/tls/generate_cert.go

func CreateCertificateContainer

func CreateCertificateContainer(t *testing.T, client *gophercloud.ServiceClient, passphrase, private, certificate *secrets.Secret) (*containers.Container, error)

CreateCertificateContainer will create a random certificate container. An error will be returned if the container could not be created.

func CreateCertificateSecret

func CreateCertificateSecret(t *testing.T, client *gophercloud.ServiceClient, cert []byte) (*secrets.Secret, error)

CreateCertificateSecret will create a random certificate secret. An error will be returned if the secret could not be created.

func CreateEmptySecret

func CreateEmptySecret(t *testing.T, client *gophercloud.ServiceClient) (*secrets.Secret, error)

CreateEmptySecret will create a random secret with no payload. An error will be returned if the secret could not be created.

func CreateGenericContainer

func CreateGenericContainer(t *testing.T, client *gophercloud.ServiceClient, secret *secrets.Secret) (*containers.Container, error)

CreateGenericContainer will create a random generic container with a specified secret. An error will be returned if the container could not be created.

func CreateKeyOrder

func CreateKeyOrder(t *testing.T, client *gophercloud.ServiceClient) (*orders.Order, error)

CreateKeyOrder will create a random key order. An error will be returned if the order could not be created.

func CreatePassphraseSecret

func CreatePassphraseSecret(t *testing.T, client *gophercloud.ServiceClient, passphrase string) (*secrets.Secret, error)

CreatePassphraseSecret will create a random passphrase secret. An error will be returned if the secret could not be created.

func CreatePrivateSecret

func CreatePrivateSecret(t *testing.T, client *gophercloud.ServiceClient, priv []byte) (*secrets.Secret, error)

CreatePrivateSecret will create a random private secret. An error will be returned if the secret could not be created.

func CreatePublicSecret

func CreatePublicSecret(t *testing.T, client *gophercloud.ServiceClient, pub []byte) (*secrets.Secret, error)

CreatePublicSecret will create a random public secret. An error will be returned if the secret could not be created.

func CreateRSAContainer

func CreateRSAContainer(t *testing.T, client *gophercloud.ServiceClient, passphrase, private, public *secrets.Secret) (*containers.Container, error)

CreateRSAContainer will create a random RSA container. An error will be returned if the container could not be created.

func CreateRSAKeyPair

func CreateRSAKeyPair(t *testing.T, passphrase string) ([]byte, []byte, error)

CreateRSAKeyPair will create a random RSA key pair. An error will be returned if the pair could not be created.

func CreateSecretWithPayload

func CreateSecretWithPayload(t *testing.T, client *gophercloud.ServiceClient, payload string) (*secrets.Secret, error)

CreateSecretWithPayload will create a random secret with a given payload. An error will be returned if the secret could not be created.

func CreateSymmetricSecret

func CreateSymmetricSecret(t *testing.T, client *gophercloud.ServiceClient) (*secrets.Secret, error)

CreateSymmetricSecret will create a random symmetric secret. An error will be returned if the secret could not be created.

func DeleteContainer

func DeleteContainer(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteContainer will delete a container. A fatal error will occur if the container could not be deleted. This works best when used as a deferred function.

func DeleteOrder

func DeleteOrder(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteOrder will delete an order. A fatal error will occur if the order could not be deleted. This works best when used as a deferred function.

func DeleteSecret

func DeleteSecret(t *testing.T, client *gophercloud.ServiceClient, id string)

DeleteSecret will delete a secret. A fatal error will occur if the secret could not be deleted. This works best when used as a deferred function.

func ParseID

func ParseID(ref string) (string, error)

func ReplaceGenericContainerSecretRef

func ReplaceGenericContainerSecretRef(t *testing.T, client *gophercloud.ServiceClient, container *containers.Container, secretOld *secrets.Secret, secretNew *secrets.Secret) error

ReplaceGenericContainerSecretRef will replace the container old secret reference with a new one. An error will be returned if the reference could not be replaced.

func WaitForOrder

func WaitForOrder(client *gophercloud.ServiceClient, orderID string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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