updater

package
v0.0.0-...-6659799 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package updater is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUpdateMetadataFailed is returned when failed to update metadata
	ErrUpdateMetadataFailed = errors.New("failed to update status")
)

Functions

This section is empty.

Types

type AgentInfoUpdater

type AgentInfoUpdater interface {
	Update(md *metadata.Metadata) error
}

AgentInfoUpdater updates the droplet agent related fields in the droplet's metadata

func NewAgentInfoUpdater

func NewAgentInfoUpdater() AgentInfoUpdater

NewAgentInfoUpdater creates a new agent info updater

type MockhttpClient

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

MockhttpClient is a mock of httpClient interface.

func NewMockhttpClient

func NewMockhttpClient(ctrl *gomock.Controller) *MockhttpClient

NewMockhttpClient creates a new mock instance.

func (*MockhttpClient) Do

func (m *MockhttpClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockhttpClient) EXPECT

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

type MockhttpClientMockRecorder

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

MockhttpClientMockRecorder is the mock recorder for MockhttpClient.

func (*MockhttpClientMockRecorder) Do

func (mr *MockhttpClientMockRecorder) Do(req interface{}) *gomock.Call

Do indicates an expected call of Do.

Jump to

Keyboard shortcuts

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