ocm

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 45

Documentation

Overview

This file defines a wrapper to the sdk's cluster object for easy mocking

Package ocm is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection() *conn.ConnectionBuilder

Types

type Cluster added in v1.0.4

type Cluster interface {
	Id() string
	State() cmv1.ClusterState
	CloudProviderId() string
	CcsEnabled() bool
}

func NewCluster added in v1.0.4

func NewCluster(data *cmv1.Cluster) Cluster

type MockCluster added in v1.0.4

type MockCluster struct {
	// contains filtered or unexported fields
}

MockCluster is a mock of Cluster interface.

func NewMockCluster added in v1.0.4

func NewMockCluster(ctrl *gomock.Controller) *MockCluster

NewMockCluster creates a new mock instance.

func (*MockCluster) CcsEnabled added in v1.0.4

func (m *MockCluster) CcsEnabled() bool

CcsEnabled mocks base method.

func (*MockCluster) CloudProviderId added in v1.0.4

func (m *MockCluster) CloudProviderId() string

CloudProviderId mocks base method.

func (*MockCluster) EXPECT added in v1.0.4

func (m *MockCluster) EXPECT() *MockClusterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCluster) Id added in v1.0.4

func (m *MockCluster) Id() string

Id mocks base method.

func (*MockCluster) State added in v1.0.4

func (m *MockCluster) State() v1.ClusterState

State mocks base method.

type MockClusterMockRecorder added in v1.0.4

type MockClusterMockRecorder struct {
	// contains filtered or unexported fields
}

MockClusterMockRecorder is the mock recorder for MockCluster.

func (*MockClusterMockRecorder) CcsEnabled added in v1.0.4

func (mr *MockClusterMockRecorder) CcsEnabled() *gomock.Call

CcsEnabled indicates an expected call of CcsEnabled.

func (*MockClusterMockRecorder) CloudProviderId added in v1.0.4

func (mr *MockClusterMockRecorder) CloudProviderId() *gomock.Call

CloudProviderId indicates an expected call of CloudProviderId.

func (*MockClusterMockRecorder) Id added in v1.0.4

Id indicates an expected call of Id.

func (*MockClusterMockRecorder) State added in v1.0.4

func (mr *MockClusterMockRecorder) State() *gomock.Call

State indicates an expected call of State.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL