jolokia

package
v1.0.16 Latest Latest
Warning

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

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

Documentation

Overview

Package jolokia is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResponse added in v1.0.8

func CheckResponse(resp *http.Response, jdata *ResponseData) error

Types

type IData added in v1.0.8

type IData interface {
	Print()
}

type IJolokia added in v1.0.8

type IJolokia interface {
	Read(path string) (*ResponseData, error)
	Exec(path, postJsonString string) (*ResponseData, error)
}

type Jolokia added in v1.0.8

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

func GetJolokia added in v1.0.8

func GetJolokia(_ip string, _port string, _path string, _user string, _password string, _protocol string) *Jolokia

func NewJolokia added in v1.0.8

func NewJolokia(_ip string, _port string, _path string, _user string, _password string) *Jolokia

func (*Jolokia) Exec added in v1.0.8

func (j *Jolokia) Exec(_path string, _postJsonString string) (*ResponseData, error)

func (*Jolokia) Read added in v1.0.8

func (j *Jolokia) Read(_path string) (*ResponseData, error)

type JolokiaError added in v1.0.8

type JolokiaError struct {
	HttpCode int
	Message  string
}

func (*JolokiaError) Error added in v1.0.8

func (j *JolokiaError) Error() string

type MockIData added in v1.0.8

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

MockIData is a mock of IData interface.

func NewMockIData added in v1.0.8

func NewMockIData(ctrl *gomock.Controller) *MockIData

NewMockIData creates a new mock instance.

func (*MockIData) EXPECT added in v1.0.8

func (m *MockIData) EXPECT() *MockIDataMockRecorder

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

func (*MockIData) Print added in v1.0.8

func (m *MockIData) Print()

Print mocks base method.

type MockIDataMockRecorder added in v1.0.8

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

MockIDataMockRecorder is the mock recorder for MockIData.

func (*MockIDataMockRecorder) Print added in v1.0.8

func (mr *MockIDataMockRecorder) Print() *gomock.Call

Print indicates an expected call of Print.

type MockIJolokia added in v1.0.8

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

MockIJolokia is a mock of IJolokia interface.

func NewMockIJolokia added in v1.0.8

func NewMockIJolokia(ctrl *gomock.Controller) *MockIJolokia

NewMockIJolokia creates a new mock instance.

func (*MockIJolokia) EXPECT added in v1.0.8

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

func (*MockIJolokia) Exec added in v1.0.8

func (m *MockIJolokia) Exec(path, postJsonString string) (*ResponseData, error)

Exec mocks base method.

func (*MockIJolokia) Read added in v1.0.8

func (m *MockIJolokia) Read(path string) (*ResponseData, error)

Read mocks base method.

type MockIJolokiaMockRecorder added in v1.0.8

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

MockIJolokiaMockRecorder is the mock recorder for MockIJolokia.

func (*MockIJolokiaMockRecorder) Exec added in v1.0.8

func (mr *MockIJolokiaMockRecorder) Exec(path, postJsonString interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockIJolokiaMockRecorder) Read added in v1.0.8

func (mr *MockIJolokiaMockRecorder) Read(path interface{}) *gomock.Call

Read indicates an expected call of Read.

type ReadRequest added in v1.0.8

type ReadRequest struct {
	MBean     string `json:"mbean"`
	Attribute string `json:"attribute"`
	Type      string `json:"type"`
}

type ResponseData added in v1.0.8

type ResponseData struct {
	Status    int
	Value     string
	ErrorType string
	Error     string
}

Jump to

Keyboard shortcuts

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