remote

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Name() string
	Status() bool
	AppPort() string
	SourcePath() string
	ServiceName() string
	Type() string
	GetFiles() []entity.Entity
	UpdateStatus(bool)
	UpdateFiles([]entity.Entity)
}

App defines the remote application Actions method with related to target App

func NewRemoteApp

func NewRemoteApp(name, remote string) (App, error)

NewRemoteApp - new remote app pointer

type Remote

type Remote interface {
	Name() string
	Status() bool
	Type() string
	Apps() ([]App, error)
	App(string) (App, error)
	AppByType(string) ([]App, error)
	AgentAddress() string
	UpdateStatus(bool)
}

Remote defines the remote config interface Actions method with related to Remote

func GetRemotes

func GetRemotes() (remotes []Remote)

GetRemotes - returns all available remotes

func GetRemotesByType

func GetRemotesByType(t string) (remotes []Remote)

GetRemotesByType - returns available remotes by its type

func NewRemote

func NewRemote(name string) (Remote, error)

NewRemote - declare a remote host

Jump to

Keyboard shortcuts

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