operation

package
v3.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Overview

Package operation define the remote instance operations interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary interface {
	File
	ID() string
	Arch() string
	Version() string
	URL() *url.URL
	SetURL(url string)
	SetHost(host string)
	SetPath(path string)
	SetZone(zone string)
	AppendChecksum(c checksum.Interface)
	Get(timeout time.Duration) error
	CompareChecksum() error
}

Binary interface defines the operations for Kubernetes needed binaries which usually needed to be copied to remote.

type Directory

type Directory interface {
	Make() error
	Chown(user string) error
	Remove() error
}

Directory interface defines the operations for remote instance Linux directory.

type File

type File interface {
	Name() string
	Type() file.Type
	LocalPath() string
	RemotePath() string
	LocalExist() bool
	RemoteExist() bool
	Copy(override bool) error
	Fetch(override bool) error
	Chmod(option string) error
}

File interface defines the operations for normal file which needed to be copied to remote.

type Repository

type Repository interface {
	Update() error
	Install(pkg ...string) error
	Add(path string) error
}

Repository interface defines the operations for remote instance Linux repository.

type Template

type Template interface {
	File
	RenderToLocal() error
}

Template interface defines the operations for Kubernetes needed template files (systemd files, config files .e.g) which usually needed to be copied to remote.

type User

type User interface {
	Add() error
}

User interface defines the operations for remote instance Linux user.

Directories

Path Synopsis
Package directory defines the operations on remote instance directory.
Package directory defines the operations on remote instance directory.
Package file defines the operations on the binaries.
Package file defines the operations on the binaries.
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.
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.
Package user defines the user operations on the remote instance.
Package user defines the user operations on the remote instance.

Jump to

Keyboard shortcuts

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