Documentation ¶
Overview ¶
Package fixtures provides convenience test fixtures shared by other packages of secret-volume.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestVolume = &api.Volume{ ID: "hash", Source: api.TalosSecretSource, Tags: url.Values{"tag": []string{"awesome"}}, KeyPair: api.KeyPair{}, }
TestVolume is a volume fixture
View Source
var TestVolumes = api.Volumes{TestVolume}
TestVolumes is a slice of volume fixtures
Functions ¶
func NewBoringSecrets ¶
NewBoringSecrets returns a very boring secrets fixture
func PredictableLoadBalancerFor ¶
func PredictableLoadBalancerFor(addr string) (lb.LoadBalancer, error)
PredictableLoadBalancerFor returns a loadbalancer that always directs load to the supplied addr.
Types ¶
type InsecureVolume ¶
An InsecureVolume is a Volume that will include its KeyPair when writing JSON
func NewInsecureVolume ¶
func NewInsecureVolume(v *api.Volume) *InsecureVolume
NewInsecureVolume creates an InsecureVolume from a regular old volume.
Click to show internal directories.
Click to hide internal directories.