podman

package
v0.0.0-...-73e0568 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package podman is a generated GoMock package.

Index

Constants

View Source
const (
	StoppedContainer = "stoppedContainer"
	StartedContainer = "startedContainer"

	DefaultNetworkName = "podman"
)
View Source
const DefaultTimeoutForStoppingInSeconds int = 5

Variables

This section is empty.

Functions

func NewPodman

func NewPodman() (*podman, error)

Types

type AutoUpdateUnit

type AutoUpdateUnit struct {
	ManifestPath string
	PodName      string
	PodmanBinary string
}

type ContainerReport

type ContainerReport struct {
	IPAddress string
	Id        string
	Name      string
}

type MockPodman

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

MockPodman is a mock of Podman interface.

func NewMockPodman

func NewMockPodman(ctrl *gomock.Controller) *MockPodman

NewMockPodman creates a new mock instance.

func (*MockPodman) CreateSecret

func (m *MockPodman) CreateSecret(arg0, arg1 string) error

CreateSecret mocks base method.

func (*MockPodman) EXPECT

func (m *MockPodman) EXPECT() *MockPodmanMockRecorder

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

func (*MockPodman) Exists

func (m *MockPodman) Exists(arg0 string) (bool, error)

Exists mocks base method.

func (*MockPodman) GenerateSystemdService

func (m *MockPodman) GenerateSystemdService(arg0 *v1.Pod, arg1 string, arg2 uint) (service.Service, error)

GenerateSystemdService mocks base method.

func (*MockPodman) GetPodReportForId

func (m *MockPodman) GetPodReportForId(arg0 string) (*PodReport, error)

GetPodReportForId mocks base method.

func (*MockPodman) List

func (m *MockPodman) List() ([]api.WorkloadInfo, error)

List mocks base method.

func (*MockPodman) ListSecrets

func (m *MockPodman) ListSecrets() (map[string]struct{}, error)

ListSecrets mocks base method.

func (*MockPodman) Logs

func (m *MockPodman) Logs(arg0 string, arg1 io.Writer) (context.CancelFunc, error)

Logs mocks base method.

func (*MockPodman) Remove

func (m *MockPodman) Remove(arg0 string) error

Remove mocks base method.

func (*MockPodman) RemoveSecret

func (m *MockPodman) RemoveSecret(arg0 string) error

RemoveSecret mocks base method.

func (*MockPodman) Run

func (m *MockPodman) Run(arg0, arg1 string, arg2 map[string]string) ([]*PodReport, error)

Run mocks base method.

func (*MockPodman) Start

func (m *MockPodman) Start(arg0 string) error

Start mocks base method.

func (*MockPodman) Stop

func (m *MockPodman) Stop(arg0 string) error

Stop mocks base method.

func (*MockPodman) UpdateSecret

func (m *MockPodman) UpdateSecret(arg0, arg1 string) error

UpdateSecret mocks base method.

type MockPodmanMockRecorder

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

MockPodmanMockRecorder is the mock recorder for MockPodman.

func (*MockPodmanMockRecorder) CreateSecret

func (mr *MockPodmanMockRecorder) CreateSecret(arg0, arg1 interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret.

func (*MockPodmanMockRecorder) Exists

func (mr *MockPodmanMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockPodmanMockRecorder) GenerateSystemdService

func (mr *MockPodmanMockRecorder) GenerateSystemdService(arg0, arg1, arg2 interface{}) *gomock.Call

GenerateSystemdService indicates an expected call of GenerateSystemdService.

func (*MockPodmanMockRecorder) GetPodReportForId

func (mr *MockPodmanMockRecorder) GetPodReportForId(arg0 interface{}) *gomock.Call

GetPodReportForId indicates an expected call of GetPodReportForId.

func (*MockPodmanMockRecorder) List

func (mr *MockPodmanMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*MockPodmanMockRecorder) ListSecrets

func (mr *MockPodmanMockRecorder) ListSecrets() *gomock.Call

ListSecrets indicates an expected call of ListSecrets.

func (*MockPodmanMockRecorder) Logs

func (mr *MockPodmanMockRecorder) Logs(arg0, arg1 interface{}) *gomock.Call

Logs indicates an expected call of Logs.

func (*MockPodmanMockRecorder) Remove

func (mr *MockPodmanMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockPodmanMockRecorder) RemoveSecret

func (mr *MockPodmanMockRecorder) RemoveSecret(arg0 interface{}) *gomock.Call

RemoveSecret indicates an expected call of RemoveSecret.

func (*MockPodmanMockRecorder) Run

func (mr *MockPodmanMockRecorder) Run(arg0, arg1, arg2 interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockPodmanMockRecorder) Start

func (mr *MockPodmanMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockPodmanMockRecorder) Stop

func (mr *MockPodmanMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockPodmanMockRecorder) UpdateSecret

func (mr *MockPodmanMockRecorder) UpdateSecret(arg0, arg1 interface{}) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret.

type PodReport

type PodReport struct {
	Id         string
	Name       string
	Containers []*ContainerReport
}

func (*PodReport) AppendContainer

func (p *PodReport) AppendContainer(c *ContainerReport)

type Podman

type Podman interface {
	List() ([]api2.WorkloadInfo, error)
	Remove(workloadId string) error
	Run(manifestPath, authFilePath string, annotations map[string]string) ([]*PodReport, error)
	Start(workloadId string) error
	Stop(workloadId string) error
	ListSecrets() (map[string]struct{}, error)
	RemoveSecret(name string) error
	CreateSecret(name, data string) error
	UpdateSecret(name, data string) error
	Exists(workloadId string) (bool, error)
	GenerateSystemdService(workload *v1.Pod, manifestPath string, monitoringInterval uint) (service.Service, error)
	Logs(podID string, res io.Writer) (context.CancelFunc, error)
	GetPodReportForId(podID string) (*PodReport, error)
}

type PodmanEvent

type PodmanEvent struct {
	Event        string
	WorkloadName string
	Report       *PodReport
}

Jump to

Keyboard shortcuts

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