entity

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 26 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

This section is empty.

Types

type Host

type Host struct {
	*Netlify
	*SCPHost
}

func (*Host) Deploy added in v0.1.24

func (h *Host) Deploy(localPath string) (host.Result, error)

Deploy implements the Deployer interface

type Netlify

type Netlify struct {
	// contains filtered or unexported fields
}

func NewNetlify

func NewNetlify() (*Netlify, error)

func NewNetlifyWithConfig added in v0.1.24

func NewNetlifyWithConfig(config *valueobject.NetlifyConfig) (*Netlify, error)

NewNetlifyWithConfig creates a new Netlify instance with the provided configuration

func (*Netlify) DeleteNetlifySite

func (a *Netlify) DeleteNetlifySite(token string, siteID string) error

func (*Netlify) Deploy added in v0.1.24

func (a *Netlify) Deploy(localPath string) (host.Result, error)

Deploy implements the Deployer interface

func (*Netlify) DeployExistingNetlifySite

func (a *Netlify) DeployExistingNetlifySite(token string, target string, siteID string) (valueobject.DeployResult, error)

func (*Netlify) DeployNewNetlifySite

func (a *Netlify) DeployNewNetlifySite(token string, target string, siteName string, domain string) (valueobject.DeployResult, error)

type SCPHost added in v0.1.22

type SCPHost struct {
	HostKeyFile string // Path to known_hosts file

	// StrictHostKeyChecking controls whether to strictly verify host keys
	StrictHostKeyChecking bool
	// contains filtered or unexported fields
}

SCPHost represents a remote host that supports SCP file transfer

func NewSCPHost added in v0.1.22

func NewSCPHost(config *valueobject.SCPConfig, auth host.AuthMethod) *SCPHost

NewSCPHost creates a new SCPHost instance with password authentication

func (*SCPHost) Close added in v0.1.22

func (h *SCPHost) Close() error

Close closes the SSH connection

func (*SCPHost) Connect added in v0.1.22

func (h *SCPHost) Connect() error

Connect establishes SSH connection to the remote host

func (*SCPHost) CreateRemoteDirectory added in v0.1.22

func (h *SCPHost) CreateRemoteDirectory(path string) error

CreateRemoteDirectory creates a directory on the remote host

func (*SCPHost) Deploy added in v0.1.22

func (h *SCPHost) Deploy(localPath string) (host.Result, error)

Deploy implements the Deployer interface

func (*SCPHost) DeployWithTar added in v0.1.22

func (h *SCPHost) DeployWithTar(localPath string) (host.Result, error)

DeployWithTar implements the Deployer interface using tar compression

func (*SCPHost) OnProgress added in v0.1.24

func (h *SCPHost) OnProgress(current, total int64)

OnProgress implements the ProgressTracker interface

func (*SCPHost) SetLogger added in v0.1.22

func (h *SCPHost) SetLogger(logger loggers.Logger)

SetLogger sets the logger for the SCPHost

func (*SCPHost) SetProgress added in v0.1.24

func (h *SCPHost) SetProgress(callback func(current, total int64))

SetProgress sets the progress callback function

func (*SCPHost) SetStrictHostKeyChecking added in v0.1.25

func (h *SCPHost) SetStrictHostKeyChecking(strict bool)

SetStrictHostKeyChecking enables or disables strict host key checking

func (*SCPHost) UploadDirectory added in v0.1.22

func (h *SCPHost) UploadDirectory(localPath string) error

UploadDirectory recursively uploads a directory to the remote host

Jump to

Keyboard shortcuts

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