service

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package service implements various services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryService

type BinaryService interface {
	Download(timeout time.Duration) error
	UpgradeDownload(timeout time.Duration) error
}

BinaryService is the interface for binary provision.

type Bootstrap

type Bootstrap interface {
	AddUsers() error
	SetHostname() error
	CreateDirectory() error
	ResetTmpDirectory() error
	ExecInitScript() error
	KubeadmReset(criSocket string) error
	ResetNetwork() error
	RemoveFiles() error
	DaemonReload() error
	UninstallK3s() error
}

Bootstrap is the interface for bootstrap provision.

type ContainerManager

type ContainerManager interface {
	Type() string
	IsExist() bool
	Get(timeout time.Duration) error
	Install() error
}

ContainerManager is the interface for container manager provision.

type Provisioning

type Provisioning interface {
	RawBootstrapDataToProvisioningCommands(config []byte) ([]commands.Cmd, error)
}

Provisioning is the interface for bootstrap generate by CABPK provision.

type Repository

type Repository interface {
	Check() error
	Get(time time.Duration) error
	MountISO() error
	UmountISO() error
	UpdateAndInstall() error
}

Repository is the interface for repository provision.

Directories

Path Synopsis
Package binary define the binaries operations on the remote instance.
Package binary define the binaries operations on the remote instance.
k3s
Package k3s define the binaries operations on the remote instance.
Package k3s define the binaries operations on the remote instance.
kubernetes
Package kubernetes define the binaries operations on the remote instance.
Package kubernetes define the binaries operations on the remote instance.
Package bootstrap defines the CAPKK bootstrap operations on the remote instance.
Package bootstrap defines the CAPKK bootstrap operations on the remote instance.
Package containermanager defines the operations on the remote instance's CRI.
Package containermanager defines the operations on the remote instance's CRI.
Package operation define the remote instance operations interface.
Package operation define the remote instance operations interface.
directory
Package directory defines the operations on remote instance directory.
Package directory defines the operations on remote instance directory.
file
Package file defines the operations on the binaries.
Package file defines the operations on the binaries.
file/checksum
Package checksum implements methods for obtaining and verifying the checksum of binary files.
Package checksum implements methods for obtaining and verifying the checksum of binary files.
repository
Package repository defines the operations on the remote instance linux software packages repository.
Package repository defines the operations on the remote instance linux software packages repository.
user
Package user defines the user operations on the remote instance.
Package user defines the user operations on the remote instance.
Package provisioning defines the provisioning operations on the remote instance generated by cloudinit or ignition.
Package provisioning defines the provisioning operations on the remote instance generated by cloudinit or ignition.
cloudinit
Package cloudinit defines cloud init adapter for existing nodes.
Package cloudinit defines cloud init adapter for existing nodes.
commands
Package commands deals with various machine initialization methods viz.
Package commands deals with various machine initialization methods viz.
Package repository contains the repository service.
Package repository contains the repository service.
Package util contains utility functions for the service.
Package util contains utility functions for the service.

Jump to

Keyboard shortcuts

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