Versions in this module Expand all Collapse all v0 v0.26.1 Jul 28, 2026 Changes in this version + var File_pkg_genericcli_printers_proto_test_test_proto protoreflect.FileDescriptor + var State_name = map[int32]string + var State_value = map[string]int32 + type Foo struct + ListFoos []*NestedFoo + MapFoos map[string]*NestedFoo + State State + Text string + func (*Foo) Descriptor() ([]byte, []int) + func (*Foo) ProtoMessage() + func (x *Foo) GetListFoos() []*NestedFoo + func (x *Foo) GetMapFoos() map[string]*NestedFoo + func (x *Foo) GetState() State + func (x *Foo) GetText() string + func (x *Foo) ProtoReflect() protoreflect.Message + func (x *Foo) Reset() + func (x *Foo) String() string + type MockTestClient struct + func NewMockTestClient(t interface{ ... }) *MockTestClient + func (_m *MockTestClient) EXPECT() *MockTestClient_Expecter + func (_mock *MockTestClient) Convert(r *TestResponse) ([]string, *TestCreate, *TestUpdate, error) + func (_mock *MockTestClient) Create(rq *TestCreate) (*TestResponse, error) + func (_mock *MockTestClient) Delete(id string) (*TestResponse, error) + func (_mock *MockTestClient) Get(id string) (*TestResponse, error) + func (_mock *MockTestClient) List() ([]*TestResponse, error) + func (_mock *MockTestClient) Update(rq *TestUpdate) (*TestResponse, error) + type MockTestClient_Convert_Call struct + func (_c *MockTestClient_Convert_Call) Return(strings []string, testCreate *TestCreate, testUpdate *TestUpdate, err error) *MockTestClient_Convert_Call + func (_c *MockTestClient_Convert_Call) Run(run func(r *TestResponse)) *MockTestClient_Convert_Call + func (_c *MockTestClient_Convert_Call) RunAndReturn(run func(r *TestResponse) ([]string, *TestCreate, *TestUpdate, error)) *MockTestClient_Convert_Call + type MockTestClient_Create_Call struct + func (_c *MockTestClient_Create_Call) Return(testResponse *TestResponse, err error) *MockTestClient_Create_Call + func (_c *MockTestClient_Create_Call) Run(run func(rq *TestCreate)) *MockTestClient_Create_Call + func (_c *MockTestClient_Create_Call) RunAndReturn(run func(rq *TestCreate) (*TestResponse, error)) *MockTestClient_Create_Call + type MockTestClient_Delete_Call struct + func (_c *MockTestClient_Delete_Call) Return(testResponse *TestResponse, err error) *MockTestClient_Delete_Call + func (_c *MockTestClient_Delete_Call) Run(run func(id string)) *MockTestClient_Delete_Call + func (_c *MockTestClient_Delete_Call) RunAndReturn(run func(id string) (*TestResponse, error)) *MockTestClient_Delete_Call + type MockTestClient_Expecter struct + func (_e *MockTestClient_Expecter) Convert(r any) *MockTestClient_Convert_Call + func (_e *MockTestClient_Expecter) Create(rq any) *MockTestClient_Create_Call + func (_e *MockTestClient_Expecter) Delete(id any) *MockTestClient_Delete_Call + func (_e *MockTestClient_Expecter) Get(id any) *MockTestClient_Get_Call + func (_e *MockTestClient_Expecter) List() *MockTestClient_List_Call + func (_e *MockTestClient_Expecter) Update(rq any) *MockTestClient_Update_Call + type MockTestClient_Get_Call struct + func (_c *MockTestClient_Get_Call) Return(testResponse *TestResponse, err error) *MockTestClient_Get_Call + func (_c *MockTestClient_Get_Call) Run(run func(id string)) *MockTestClient_Get_Call + func (_c *MockTestClient_Get_Call) RunAndReturn(run func(id string) (*TestResponse, error)) *MockTestClient_Get_Call + type MockTestClient_List_Call struct + func (_c *MockTestClient_List_Call) Return(testResponses []*TestResponse, err error) *MockTestClient_List_Call + func (_c *MockTestClient_List_Call) Run(run func()) *MockTestClient_List_Call + func (_c *MockTestClient_List_Call) RunAndReturn(run func() ([]*TestResponse, error)) *MockTestClient_List_Call + type MockTestClient_Update_Call struct + func (_c *MockTestClient_Update_Call) Return(testResponse *TestResponse, err error) *MockTestClient_Update_Call + func (_c *MockTestClient_Update_Call) Run(run func(rq *TestUpdate)) *MockTestClient_Update_Call + func (_c *MockTestClient_Update_Call) RunAndReturn(run func(rq *TestUpdate) (*TestResponse, error)) *MockTestClient_Update_Call + type NestedFoo struct + Text []string + func (*NestedFoo) Descriptor() ([]byte, []int) + func (*NestedFoo) ProtoMessage() + func (x *NestedFoo) GetText() []string + func (x *NestedFoo) ProtoReflect() protoreflect.Message + func (x *NestedFoo) Reset() + func (x *NestedFoo) String() string + type ProtoTestCRUD struct + Foo *Foo + func (m *ProtoTestCRUD) Convert(r *Foo) ([]string, *Foo, *Foo, error) + func (m *ProtoTestCRUD) Create(rq *Foo) (*Foo, error) + func (m *ProtoTestCRUD) Delete(ids ...string) (*Foo, error) + func (m *ProtoTestCRUD) Get(ids ...string) (*Foo, error) + func (m *ProtoTestCRUD) List() ([]*Foo, error) + func (m *ProtoTestCRUD) Update(rq *Foo) (*Foo, error) + type State int32 + const State_STATE_ACTIVE + const State_STATE_PENDING + const State_STATE_TERMINATED + const State_STATE_UNSPECIFIED + func (State) Descriptor() protoreflect.EnumDescriptor + func (State) EnumDescriptor() ([]byte, []int) + func (State) Type() protoreflect.EnumType + func (x State) Enum() *State + func (x State) Number() protoreflect.EnumNumber + func (x State) String() string + type TestCRUD struct + func NewTestCRUD(client TestClient) *TestCRUD + func (t TestCRUD) Convert(r *TestResponse) ([]string, *TestCreate, *TestUpdate, error) + func (t TestCRUD) Create(rq *TestCreate) (*TestResponse, error) + func (t TestCRUD) Delete(ids ...string) (*TestResponse, error) + func (t TestCRUD) Get(ids ...string) (*TestResponse, error) + func (t TestCRUD) List() ([]*TestResponse, error) + func (t TestCRUD) Update(rq *TestUpdate) (*TestResponse, error) + type TestClient interface + Convert func(r *TestResponse) ([]string, *TestCreate, *TestUpdate, error) + Create func(rq *TestCreate) (*TestResponse, error) + Delete func(id string) (*TestResponse, error) + Get func(id string) (*TestResponse, error) + List func() ([]*TestResponse, error) + Update func(rq *TestUpdate) (*TestResponse, error) + type TestCreate struct + ID string + Name string + type TestResponse struct + ID string + Name string + type TestUpdate struct + ID string + Name string