Documentation
¶
Index ¶
- func LoadSamples(manifest string) []runtime.Object
- func NewFakeClientSetWithSamples(manifest string) (*fake.Clientset, []runtime.Object)
- func NewFakeCluster(clusterName string, status string) *awseks.Cluster
- func NewFakeRawResource(item runtime.Object, missing, unionised bool, ct *CollectionTracker) (*kubernetes.RawResource, requestTracker)
- func RegisterAndRun(t *testing.T)
- type CollectionTracker
- func (c *CollectionTracker) AllTracked() map[string]runtime.Object
- func (c *CollectionTracker) AllTrackedItmes() (items []runtime.Object)
- func (c *CollectionTracker) Created() map[string]runtime.Object
- func (c *CollectionTracker) CreatedItems() (items []runtime.Object)
- func (c *CollectionTracker) Deleted() map[string]runtime.Object
- func (c *CollectionTracker) DeletedItems() (items []runtime.Object)
- func (c *CollectionTracker) Updated() map[string]runtime.Object
- func (c *CollectionTracker) UpdatedItems() (items []runtime.Object)
- type FakeRawClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSamples ¶
func NewFakeCluster ¶
NewFakeCluster creates a new fake cluster to be used in the tests
func NewFakeRawResource ¶
func NewFakeRawResource(item runtime.Object, missing, unionised bool, ct *CollectionTracker) (*kubernetes.RawResource, requestTracker)
Types ¶
type CollectionTracker ¶
type CollectionTracker struct {
// contains filtered or unexported fields
}
func NewCollectionTracker ¶
func NewCollectionTracker() *CollectionTracker
func (*CollectionTracker) AllTracked ¶
func (c *CollectionTracker) AllTracked() map[string]runtime.Object
func (*CollectionTracker) AllTrackedItmes ¶
func (c *CollectionTracker) AllTrackedItmes() (items []runtime.Object)
func (*CollectionTracker) CreatedItems ¶
func (c *CollectionTracker) CreatedItems() (items []runtime.Object)
func (*CollectionTracker) DeletedItems ¶
func (c *CollectionTracker) DeletedItems() (items []runtime.Object)
func (*CollectionTracker) UpdatedItems ¶
func (c *CollectionTracker) UpdatedItems() (items []runtime.Object)
type FakeRawClient ¶
type FakeRawClient struct { Collection *CollectionTracker AssumeObjectsMissing bool ClientSetUseUpdatedObjects bool UseUnionTracker bool }
func NewFakeRawClient ¶
func NewFakeRawClient() *FakeRawClient
func (*FakeRawClient) ClearUpdated ¶
func (c *FakeRawClient) ClearUpdated()
func (*FakeRawClient) ClientSet ¶
func (c *FakeRawClient) ClientSet() kubeclient.Interface
func (*FakeRawClient) NewRawResource ¶
func (c *FakeRawClient) NewRawResource(item runtime.RawExtension) (*kubernetes.RawResource, error)
Click to show internal directories.
Click to hide internal directories.