ksync

package
v2.1.48 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallKSync

func InstallKSync() (string, error)

InstallKSync installs ksync, it returns the sha of the latest commit

Types

type CLI

type CLI struct {
	Runner util.Commander
}

CLI implements the command ksync commands contained in KSyncer.

func NewCLI

func NewCLI() (*CLI, error)

NewCLI creates a new KsyncCLI instance configured to use the provided ksync CLI in the given current working directory

func (*CLI) Clean

func (kcli *CLI) Clean() (string, error)

Clean removes the ksync pods

func (*CLI) Init

func (kcli *CLI) Init(flags ...string) (string, error)

Init installs the server side component of ksync - the daemonsets

func (*CLI) Version

func (kcli *CLI) Version() (string, error)

Version prints out the version of the local component of ksync

type KSyncer

type KSyncer interface {
	Version() (string, error)
	Init(...string) (string, error)
	Clean() (string, error)
}

KSyncer contains the ksync commands

Jump to

Keyboard shortcuts

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