client

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

View Source
const USER_AGENT = "User-Agent"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Url              string
	Transport        *http.Transport
	AuthzHeaderName  string
	AuthzHeaderValue string
}

func NewClient

func NewClient(msdAgentVersion string, url string, domain string, service string) (*Client, error)

func NewClientWithAuthz added in v1.11.65

func NewClientWithAuthz(msdAgentVersion, url, domain, service, authzHeaderName, authzHeaderValue string) (*Client, error)

func (Client) PutWorkload

func (c Client) PutWorkload(domain string, service string, options *msd.WorkloadOptions, resourceOwner string) error

type MockMsdClient

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

MockMsdClient is a mock of MsdClient interface.

func NewMockMsdClient

func NewMockMsdClient(ctrl *gomock.Controller) *MockMsdClient

NewMockMsdClient creates a new mock instance.

func (*MockMsdClient) EXPECT

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

func (*MockMsdClient) PutWorkload

func (m *MockMsdClient) PutWorkload(domain, service string, options *msd.WorkloadOptions, resourceOwner string) error

PutWorkload mocks base method.

type MockMsdClientMockRecorder

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

MockMsdClientMockRecorder is the mock recorder for MockMsdClient.

func (*MockMsdClientMockRecorder) PutWorkload

func (mr *MockMsdClientMockRecorder) PutWorkload(domain, service, options, resourceOwner any) *gomock.Call

PutWorkload indicates an expected call of PutWorkload.

type MsdClient

type MsdClient interface {
	PutWorkload(domain string, service string, options *msd.WorkloadOptions, resourceOwner string) error
}

Jump to

Keyboard shortcuts

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