Documentation ¶
Index ¶
- func CreateAsymmetricOrder(t *testing.T, client *gophercloud.ServiceClient) (*orders.Order, error)
- func CreateCertificate(t *testing.T, passphrase string) ([]byte, []byte, error)
- func CreateCertificateContainer(t *testing.T, client *gophercloud.ServiceClient, ...) (*containers.Container, error)
- func CreateCertificateSecret(t *testing.T, client *gophercloud.ServiceClient, cert []byte) (*secrets.Secret, error)
- func CreateEmptySecret(t *testing.T, client *gophercloud.ServiceClient) (*secrets.Secret, error)
- func CreateGenericContainer(t *testing.T, client *gophercloud.ServiceClient, secret *secrets.Secret) (*containers.Container, error)
- func CreateKeyOrder(t *testing.T, client *gophercloud.ServiceClient) (*orders.Order, error)
- func CreatePassphraseSecret(t *testing.T, client *gophercloud.ServiceClient, passphrase string) (*secrets.Secret, error)
- func CreatePrivateSecret(t *testing.T, client *gophercloud.ServiceClient, priv []byte) (*secrets.Secret, error)
- func CreatePublicSecret(t *testing.T, client *gophercloud.ServiceClient, pub []byte) (*secrets.Secret, error)
- func CreateRSAContainer(t *testing.T, client *gophercloud.ServiceClient, ...) (*containers.Container, error)
- func CreateRSAKeyPair(t *testing.T, passphrase string) ([]byte, []byte, error)
- func CreateSecretWithPayload(t *testing.T, client *gophercloud.ServiceClient, payload string) (*secrets.Secret, error)
- func CreateSymmetricSecret(t *testing.T, client *gophercloud.ServiceClient) (*secrets.Secret, error)
- func DeleteContainer(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteOrder(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteSecret(t *testing.T, client *gophercloud.ServiceClient, id string)
- func ParseID(ref string) (string, error)
- func ReplaceGenericContainerSecretRef(t *testing.T, client *gophercloud.ServiceClient, ...) error
- func WaitForOrder(client *gophercloud.ServiceClient, orderID string) error
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 ¶
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 ¶
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 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.