ocmtest

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MockClusterId   = "1ou"
	MockClusterName = "openshift-mock-cluster-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

func NewClient

func NewClient() *Client

func (*Client) GetAddOnStatus added in v1.7.0

func (c *Client) GetAddOnStatus(
	ctx context.Context,
	addonID string,
) (ocm.AddOnStatusResponse, error)

func (*Client) GetCluster

func (c *Client) GetCluster(
	ctx context.Context,
	req ocm.ClusterGetRequest,
) (ocm.ClusterGetResponse, error)

func (*Client) GetClusterIDAndName added in v1.12.0

func (c *Client) GetClusterIDAndName() (string, string)

func (*Client) GetUpgradePolicy added in v1.5.6

func (c *Client) GetUpgradePolicy(
	ctx context.Context,
	req ocm.UpgradePolicyGetRequest,
) (ocm.UpgradePolicyGetResponse, error)

func (*Client) PatchAddOnStatus added in v1.7.0

func (c *Client) PatchAddOnStatus(
	ctx context.Context,
	addonID string,
	req ocm.AddOnStatusPatchRequest,
) (ocm.AddOnStatusResponse, error)

func (*Client) PatchUpgradePolicy

func (*Client) PostAddOnStatus added in v1.7.0

func (c *Client) PostAddOnStatus(
	ctx context.Context,
	req ocm.AddOnStatusPostRequest,
) (ocm.AddOnStatusResponse, error)

Jump to

Keyboard shortcuts

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