remote

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneMap

func CloneMap(orig *map[string]string) *map[string]string

func GetConfigPath

func GetConfigPath(dir string, w *workspace2.Workspace) (exists bool, remoteFilePath string, err error)

func ListTypes

func ListTypes() []string

func LoadConfig

func LoadConfig(dir string, w *workspace.Workspace, defaultsProvider func() *map[string]string) (c *map[string]string, err error)

func MustJoinPath

func MustJoinPath(base string, elem string) string

func Register

func Register(remoteType string, fn func(dir string, workspace *workspace2.Workspace) (Remote, error))

func SaveActiveRemoteType

func SaveActiveRemoteType(dir string, remoteType string) (*workspace2.Workspace, error)

Types

type EndpointDetails

type EndpointDetails struct {
	BaseUrl   string
	SpecUrl   string
	StatusUrl string
}

type Remote

type Remote interface {
	GetType() string
	GetConfig() (*map[string]string, error)
	SetConfigValue(key string, value string) error
	Deploy() error
	GetStatus() (*Status, error)
	GetConfigKeys() []string
	GetEndpoint() (*EndpointDetails, error)
	Undeploy() error
}

func Load

func Load(dir string, workspace *workspace2.Workspace) (*Remote, error)

func LoadActive

func LoadActive(dir string) (*workspace2.Workspace, *Remote, error)

type RemoteMetadata

type RemoteMetadata struct {
	Workspace *workspace.Workspace
	Dir       string
	Config    map[string]string
}

func (RemoteMetadata) CheckConfigKey

func (m RemoteMetadata) CheckConfigKey(supported []string, key string) error

func (RemoteMetadata) SaveConfig

func (m RemoteMetadata) SaveConfig() error

type Status

type Status struct {
	Status       string
	LastModified int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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