Documentation ¶
Overview ¶
Package templates is a generated GoMock package.
Index ¶
- type Interface
- type MockInterface
- func (m *MockInterface) Create(arg0 *v1.Template) (*v1.Template, error)
- func (m *MockInterface) Delete(arg0 string) error
- func (m *MockInterface) DeleteByLabels(arg0 string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(arg0 string) (*v1.Template, error)
- func (m *MockInterface) List(arg0 string) (*v1.TemplateList, error)
- func (m *MockInterface) Update(arg0 *v1.Template) (*v1.Template, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call
- type TemplatesClient
- func (s TemplatesClient) Create(template *templatev1.Template) (*templatev1.Template, error)
- func (s TemplatesClient) Delete(name string) error
- func (s TemplatesClient) DeleteByLabels(selector string) error
- func (s TemplatesClient) Get(name string) (*templatev1.Template, error)
- func (s TemplatesClient) List(selector string) (*templatev1.TemplateList, error)
- func (s TemplatesClient) Update(template *templatev1.Template) (*templatev1.Template, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { List(selector string) (*templatev1.TemplateList, error) Get(name string) (*templatev1.Template, error) Create(template *templatev1.Template) (*templatev1.Template, error) Update(template *templatev1.Template) (*templatev1.Template, error) Delete(name string) error DeleteByLabels(selector string) error }
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(arg0 string) error
Delete mocks base method.
func (*MockInterface) DeleteByLabels ¶
func (m *MockInterface) DeleteByLabels(arg0 string) error
DeleteByLabels mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Get ¶
func (m *MockInterface) Get(arg0 string) (*v1.Template, error)
Get mocks base method.
func (*MockInterface) List ¶
func (m *MockInterface) List(arg0 string) (*v1.TemplateList, error)
List mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Create ¶
func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockInterfaceMockRecorder) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInterfaceMockRecorder) DeleteByLabels ¶
func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call
DeleteByLabels indicates an expected call of DeleteByLabels.
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockInterfaceMockRecorder) List ¶
func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockInterfaceMockRecorder) Update ¶
func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
type TemplatesClient ¶
type TemplatesClient struct {
// contains filtered or unexported fields
}
TemplatesClient client for getting templates CRs
func NewClient ¶
func NewClient(client client.Client, namespace string) *TemplatesClient
NewClient returns new client instance, needs kubernetes client to be passed as dependecy
func (TemplatesClient) Create ¶
func (s TemplatesClient) Create(template *templatev1.Template) (*templatev1.Template, error)
Create creates new template CRD
func (TemplatesClient) Delete ¶
func (s TemplatesClient) Delete(name string) error
Delete deletes template by name
func (TemplatesClient) DeleteByLabels ¶
func (s TemplatesClient) DeleteByLabels(selector string) error
DeleteByLabels deletes templates by labels
func (TemplatesClient) Get ¶
func (s TemplatesClient) Get(name string) (*templatev1.Template, error)
Get gets template by name in given namespace
func (TemplatesClient) List ¶
func (s TemplatesClient) List(selector string) (*templatev1.TemplateList, error)
List shows list of available executors
func (TemplatesClient) Update ¶
func (s TemplatesClient) Update(template *templatev1.Template) (*templatev1.Template, error)
Update updates template