repository

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: 16 Imported by: 1

Documentation

Overview

Package repository contains the repository service.

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 kubekey build-in repository client.

func (*Service) Check

func (s *Service) Check() error

Check checks the OS release info.

func (*Service) Get

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

Get gets the binary of ISO file and copy it to the remote instance.

func (*Service) MountISO

func (s *Service) MountISO() error

MountISO mounts the ISO file to the remote instance.

func (*Service) UmountISO

func (s *Service) UmountISO() error

UmountISO unmounts the ISO file from the remote instance.

func (*Service) UpdateAndInstall

func (s *Service) UpdateAndInstall() error

UpdateAndInstall updates the linux package manager and installs some tools. Ex: apt-get update && apt-get install -y socat conntrack ipset ebtables chrony ipvsadm yum clean all && yum makecache && yum install -y openssl socat conntrack ipset ebtables chrony ipvsadm

Jump to

Keyboard shortcuts

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