k3s

package
v3.0.8-69cb87a Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package k3s define the binaries operations on the remote instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together.

func NewService

func NewService(sshClient ssh.Interface, scope scope.KKInstanceScope, instanceScope *scope.InstanceScope) *Service

NewService returns a new service given the remote instance.

func (*Service) Download

func (s *Service) Download(timeout time.Duration) error

Download downloads binaries.

func (*Service) DownloadAll

func (s *Service) DownloadAll(timeout time.Duration) error

DownloadAll downloads all binaries.

func (*Service) GenerateK3sInstallScript

func (s *Service) GenerateK3sInstallScript() error

GenerateK3sInstallScript generates k3s install script.

func (*Service) UpgradeDownload

func (s *Service) UpgradeDownload(timeout time.Duration) error

UpgradeDownload downloads upgrade binaries.

Jump to

Keyboard shortcuts

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