Versions in this module Expand all Collapse all v0 v0.0.12 Aug 29, 2024 Changes in this version + var SDKFactoryKey = Key + func GetAllGatewayConsumers(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Consumer, error) + func GetAllGatewayRoutes(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Route, error) + func GetAllGatewayServices(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Service, error) + func GetControlPlaneID(ctx context.Context, kkClient *kkSDK.SDK, cpName string) (string, error) + type ControlPlaneAPI interface + CreateControlPlane func(ctx context.Context, request kkCOM.CreateControlPlaneRequest, ...) (*kkOPS.CreateControlPlaneResponse, error) + DeleteControlPlane func(ctx context.Context, id string, opts ...kkOPS.Option) (*kkOPS.DeleteControlPlaneResponse, error) + GetControlPlane func(ctx context.Context, id string, opts ...kkOPS.Option) (*kkOPS.GetControlPlaneResponse, error) + ListControlPlanes func(ctx context.Context, request kkOPS.ListControlPlanesRequest, ...) (*kkOPS.ListControlPlanesResponse, error) + UpdateControlPlane func(ctx context.Context, id string, ...) (*kkOPS.UpdateControlPlaneResponse, error) + type Key struct + type KonnectSDK struct + func (k *KonnectSDK) GetControlPlaneAPI() ControlPlaneAPI + type MockControlPlaneAPI struct + func NewMockControlPlaneAPI(t interface{ ... }) *MockControlPlaneAPI + func (_m *MockControlPlaneAPI) CreateControlPlane(ctx context.Context, request components.CreateControlPlaneRequest, ...) (*operations.CreateControlPlaneResponse, error) + func (_m *MockControlPlaneAPI) DeleteControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.DeleteControlPlaneResponse, error) + func (_m *MockControlPlaneAPI) EXPECT() *MockControlPlaneAPI_Expecter + func (_m *MockControlPlaneAPI) GetControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.GetControlPlaneResponse, error) + func (_m *MockControlPlaneAPI) ListControlPlanes(ctx context.Context, request operations.ListControlPlanesRequest, ...) (*operations.ListControlPlanesResponse, error) + func (_m *MockControlPlaneAPI) UpdateControlPlane(ctx context.Context, id string, ...) (*operations.UpdateControlPlaneResponse, error) + type MockControlPlaneAPI_CreateControlPlane_Call struct + func (_c *MockControlPlaneAPI_CreateControlPlane_Call) Return(_a0 *operations.CreateControlPlaneResponse, _a1 error) *MockControlPlaneAPI_CreateControlPlane_Call + func (_c *MockControlPlaneAPI_CreateControlPlane_Call) Run(...) *MockControlPlaneAPI_CreateControlPlane_Call + func (_c *MockControlPlaneAPI_CreateControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_CreateControlPlane_Call + type MockControlPlaneAPI_DeleteControlPlane_Call struct + func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) Return(_a0 *operations.DeleteControlPlaneResponse, _a1 error) *MockControlPlaneAPI_DeleteControlPlane_Call + func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) Run(run func(ctx context.Context, id string, opts ...operations.Option)) *MockControlPlaneAPI_DeleteControlPlane_Call + func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_DeleteControlPlane_Call + type MockControlPlaneAPI_Expecter struct + func (_e *MockControlPlaneAPI_Expecter) CreateControlPlane(ctx interface{}, request interface{}, opts ...interface{}) *MockControlPlaneAPI_CreateControlPlane_Call + func (_e *MockControlPlaneAPI_Expecter) DeleteControlPlane(ctx interface{}, id interface{}, opts ...interface{}) *MockControlPlaneAPI_DeleteControlPlane_Call + func (_e *MockControlPlaneAPI_Expecter) GetControlPlane(ctx interface{}, id interface{}, opts ...interface{}) *MockControlPlaneAPI_GetControlPlane_Call + func (_e *MockControlPlaneAPI_Expecter) ListControlPlanes(ctx interface{}, request interface{}, opts ...interface{}) *MockControlPlaneAPI_ListControlPlanes_Call + func (_e *MockControlPlaneAPI_Expecter) UpdateControlPlane(ctx interface{}, id interface{}, updateControlPlaneRequest interface{}, ...) *MockControlPlaneAPI_UpdateControlPlane_Call + type MockControlPlaneAPI_GetControlPlane_Call struct + func (_c *MockControlPlaneAPI_GetControlPlane_Call) Return(_a0 *operations.GetControlPlaneResponse, _a1 error) *MockControlPlaneAPI_GetControlPlane_Call + func (_c *MockControlPlaneAPI_GetControlPlane_Call) Run(run func(ctx context.Context, id string, opts ...operations.Option)) *MockControlPlaneAPI_GetControlPlane_Call + func (_c *MockControlPlaneAPI_GetControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_GetControlPlane_Call + type MockControlPlaneAPI_ListControlPlanes_Call struct + func (_c *MockControlPlaneAPI_ListControlPlanes_Call) Return(_a0 *operations.ListControlPlanesResponse, _a1 error) *MockControlPlaneAPI_ListControlPlanes_Call + func (_c *MockControlPlaneAPI_ListControlPlanes_Call) Run(...) *MockControlPlaneAPI_ListControlPlanes_Call + func (_c *MockControlPlaneAPI_ListControlPlanes_Call) RunAndReturn(...) *MockControlPlaneAPI_ListControlPlanes_Call + type MockControlPlaneAPI_UpdateControlPlane_Call struct + func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) Return(_a0 *operations.UpdateControlPlaneResponse, _a1 error) *MockControlPlaneAPI_UpdateControlPlane_Call + func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) Run(run func(ctx context.Context, id string, ...)) *MockControlPlaneAPI_UpdateControlPlane_Call + func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_UpdateControlPlane_Call + type MockKonnectSDK struct + CPAPIFactory func() ControlPlaneAPI + T *testing.T + Token string + func (m *MockKonnectSDK) GetControlPlaneAPI() ControlPlaneAPI + type MockKonnectSDKFactory struct + T *testing.T + func (m *MockKonnectSDKFactory) Build(token string) (SDKAPI, error) + type SDKAPI interface + GetControlPlaneAPI func() ControlPlaneAPI + func KonnectSDKFactory(token string) (SDKAPI, error) + type SDKFactory func(token string) (SDKAPI, error)