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 RegisterAndRun(t *testing.T)
- type CollectionTracker
- func (c *CollectionTracker) AllTracked() map[string]runtime.Object
- func (c *CollectionTracker) AllTrackedItems() (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
- type RequestTracker
- func (t *RequestTracker) Append(req *http.Request)
- func (t *RequestTracker) Create(req *http.Request, item runtime.Object) bool
- func (t *RequestTracker) Delete(req *http.Request, item runtime.Object) bool
- func (t *RequestTracker) IsMissing(req *http.Request, item runtime.Object) bool
- func (t *RequestTracker) Methods() (m []string)
- func (t *RequestTracker) Update(req *http.Request, item runtime.Object)
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
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) AllTrackedItems ¶
func (c *CollectionTracker) AllTrackedItems() (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(object runtime.Object) (*kubernetes.RawResource, error)
type RequestTracker ¶
type RequestTracker struct {
// contains filtered or unexported fields
}
func NewFakeRawResource ¶
func NewFakeRawResource(item runtime.Object, missing, unionised bool, ct *CollectionTracker) (*kubernetes.RawResource, RequestTracker)
func (*RequestTracker) Append ¶
func (t *RequestTracker) Append(req *http.Request)
func (*RequestTracker) Methods ¶
func (t *RequestTracker) Methods() (m []string)
Click to show internal directories.
Click to hide internal directories.