remote

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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