disk

package
v0.0.0-...-51bb0a0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Informer

type Informer interface {
	Major() int
	Source() string
}

Informer represents a disk informer giving information about the device

func FromPath

func FromPath(path string) (Informer, error)

FromPath returns a disk informer from the given path

type InformerMock

type InformerMock struct {
	mock.Mock
}

InformerMock is an autogenerated mock type for the Informer type

func NewInformerMock

func NewInformerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *InformerMock

NewInformerMock creates a new instance of InformerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InformerMock) EXPECT

func (_m *InformerMock) EXPECT() *InformerMock_Expecter

func (*InformerMock) Major

func (_m *InformerMock) Major() int

Major provides a mock function with given fields:

func (*InformerMock) Source

func (_m *InformerMock) Source() string

Source provides a mock function with given fields:

type InformerMock_Expecter

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

func (*InformerMock_Expecter) Major

Major is a helper method to define mock.On call

func (*InformerMock_Expecter) Source

Source is a helper method to define mock.On call

type InformerMock_Major_Call

type InformerMock_Major_Call struct {
	*mock.Call
}

InformerMock_Major_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Major'

func (*InformerMock_Major_Call) Return

func (*InformerMock_Major_Call) Run

func (_c *InformerMock_Major_Call) Run(run func()) *InformerMock_Major_Call

func (*InformerMock_Major_Call) RunAndReturn

func (_c *InformerMock_Major_Call) RunAndReturn(run func() int) *InformerMock_Major_Call

type InformerMock_Source_Call

type InformerMock_Source_Call struct {
	*mock.Call
}

InformerMock_Source_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Source'

func (*InformerMock_Source_Call) Return

func (*InformerMock_Source_Call) Run

func (*InformerMock_Source_Call) RunAndReturn

func (_c *InformerMock_Source_Call) RunAndReturn(run func() string) *InformerMock_Source_Call

Jump to

Keyboard shortcuts

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