Documentation ¶
Index ¶
- func BuildsToRuntimeObjs(builds []*v1alpha2.Build) []runtime.Object
- func CompactJSON(spacedJSONStr string) string
- func MakeTestBuilds(image string, namespace string) []*v1alpha2.Build
- func TestK8sActions(t *testing.T, clientset *k8sfakes.Clientset, ...)
- func TestK8sAndKpackActions(t *testing.T, k8sClientSet *k8sfakes.Clientset, ...)
- func TestKpackActions(t *testing.T, clientset *kpackfakes.Clientset, ...)
- type ActionRecorder
- type ActionRecorderList
- type Actions
- type CommandTest
- type DiffBuilder
- func (d *DiffBuilder) Configure(options DiffOptions) *DiffBuilder
- func (d *DiffBuilder) New(str string) *DiffBuilder
- func (d *DiffBuilder) NoD(str string) *DiffBuilder
- func (d *DiffBuilder) Old(str string) *DiffBuilder
- func (d *DiffBuilder) Out() string
- func (d *DiffBuilder) Reset() *DiffBuilder
- func (d *DiffBuilder) SetPrefix(prefix string) *DiffBuilder
- func (d *DiffBuilder) Txt(str string) *DiffBuilder
- type DiffOptions
- type FakeClientSetProvider
- func GetFakeClusterProvider(k8sClient *k8sfakes.Clientset, kpackClient *kpackfakes.Clientset) FakeClientSetProvider
- func GetFakeK8sProvider(k8sClient *k8sfakes.Clientset, namespace string) FakeClientSetProvider
- func GetFakeKpackClusterProvider(kpackClient *kpackfakes.Clientset) FakeClientSetProvider
- func GetFakeKpackProvider(kpackClient *kpackfakes.Clientset, namespace string) FakeClientSetProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildsToRuntimeObjs ¶ added in v0.4.0
func CompactJSON ¶
func TestK8sActions ¶
func TestK8sActions( t *testing.T, clientset *k8sfakes.Clientset, expectUpdates []clientgotesting.UpdateActionImpl, expectCreates []runtime.Object, expectDeletes []clientgotesting.DeleteActionImpl, expectPatches []string, )
func TestK8sAndKpackActions ¶
func TestK8sAndKpackActions( t *testing.T, k8sClientSet *k8sfakes.Clientset, kpackClientSet *kpackfakes.Clientset, expectUpdates []clientgotesting.UpdateActionImpl, expectCreates []runtime.Object, expectDeletes []clientgotesting.DeleteActionImpl, expectPatches []string, )
func TestKpackActions ¶
func TestKpackActions( t *testing.T, clientset *kpackfakes.Clientset, expectUpdates []clientgotesting.UpdateActionImpl, expectCreates []runtime.Object, expectDeletes []clientgotesting.DeleteActionImpl, expectPatches []string, )
Types ¶
type ActionRecorder ¶
type ActionRecorder interface {
Actions() []clientgotesting.Action
}
ActionRecorder contains list of K8s request actions.
type ActionRecorderList ¶
type ActionRecorderList []ActionRecorder
ActionRecorderList is a list of ActionRecorder objects.
func (ActionRecorderList) ActionsByVerb ¶
func (l ActionRecorderList) ActionsByVerb() (Actions, error)
ActionsByVerb fills in Actions objects, sorting the actions by verb.
type Actions ¶
type Actions struct { Gets []clientgotesting.GetAction Creates []clientgotesting.CreateAction Updates []clientgotesting.UpdateAction Deletes []clientgotesting.DeleteAction DeleteCollections []clientgotesting.DeleteCollectionAction Patches []clientgotesting.PatchAction }
type CommandTest ¶
type CommandTest struct { Objects []runtime.Object StdIn string Args []string ExpectErr bool ExpectedOutput string ExpectedErrorOutput string ExpectUpdates []clientgotesting.UpdateActionImpl ExpectCreates []runtime.Object ExpectDeletes []clientgotesting.DeleteActionImpl ExpectPatches []string }
func (CommandTest) TestK8sAndKpack ¶
func (c CommandTest) TestK8sAndKpack(t *testing.T, cmdFactory func(k8sClientSet *k8sfakes.Clientset, kpackClientSet *kpackfakes.Clientset) *cobra.Command)
func (CommandTest) TestKpack ¶
func (c CommandTest) TestKpack(t *testing.T, cmdFactory func(clientSet *kpackfakes.Clientset) *cobra.Command)
type DiffBuilder ¶
type DiffBuilder struct {
// contains filtered or unexported fields
}
func NewDiffBuilder ¶
func NewDiffBuilder(t *testing.T) *DiffBuilder
func (*DiffBuilder) Configure ¶
func (d *DiffBuilder) Configure(options DiffOptions) *DiffBuilder
func (*DiffBuilder) New ¶
func (d *DiffBuilder) New(str string) *DiffBuilder
func (*DiffBuilder) NoD ¶
func (d *DiffBuilder) NoD(str string) *DiffBuilder
func (*DiffBuilder) Old ¶
func (d *DiffBuilder) Old(str string) *DiffBuilder
func (*DiffBuilder) Out ¶
func (d *DiffBuilder) Out() string
func (*DiffBuilder) Reset ¶
func (d *DiffBuilder) Reset() *DiffBuilder
func (*DiffBuilder) SetPrefix ¶
func (d *DiffBuilder) SetPrefix(prefix string) *DiffBuilder
func (*DiffBuilder) Txt ¶
func (d *DiffBuilder) Txt(str string) *DiffBuilder
type DiffOptions ¶
func DefaultDiffOptions ¶
func DefaultDiffOptions() DiffOptions
type FakeClientSetProvider ¶
type FakeClientSetProvider struct {
// contains filtered or unexported fields
}
func GetFakeClusterProvider ¶
func GetFakeClusterProvider(k8sClient *k8sfakes.Clientset, kpackClient *kpackfakes.Clientset) FakeClientSetProvider
func GetFakeK8sProvider ¶
func GetFakeK8sProvider(k8sClient *k8sfakes.Clientset, namespace string) FakeClientSetProvider
func GetFakeKpackClusterProvider ¶
func GetFakeKpackClusterProvider(kpackClient *kpackfakes.Clientset) FakeClientSetProvider
func GetFakeKpackProvider ¶
func GetFakeKpackProvider(kpackClient *kpackfakes.Clientset, namespace string) FakeClientSetProvider
func (FakeClientSetProvider) GetClientSet ¶
func (f FakeClientSetProvider) GetClientSet(namespace string) (clientSet k8s.ClientSet, err error)
Click to show internal directories.
Click to hide internal directories.