valueobject

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployResult added in v0.1.24

type DeployResult struct {
	SiteID  string
	URL     string
	Message string
}

DeployResult represents the result of a Netlify deployment

func (DeployResult) GetID added in v0.1.24

func (r DeployResult) GetID() string

GetID implements Result interface

func (DeployResult) GetMessage added in v0.1.24

func (r DeployResult) GetMessage() string

GetMessage implements Result interface

func (DeployResult) GetSize added in v0.1.24

func (r DeployResult) GetSize() int64

func (DeployResult) GetURL added in v0.1.24

func (r DeployResult) GetURL() string

GetURL implements Result interface

type KeyAuth added in v0.1.24

type KeyAuth struct {
	PrivateKeyPath string
	Passphrase     string
}

KeyAuth implements key-based authentication

func (KeyAuth) SSHAuthMethod added in v0.1.24

func (k KeyAuth) SSHAuthMethod() ssh.AuthMethod

type NetlifyConfig

type NetlifyConfig struct {
	AuthToken     string `envconfig:"auth_token" required:"true"`
	SiteID        string `envconfig:"site_id" required:"true"`
	SiteName      string `default:""`
	FullDomain    string `default:""`
	Directory     string `required:"true"`
	Draft         bool   `default:"true"`
	DeployMessage string `default:""`
}

func (*NetlifyConfig) Validate added in v0.1.24

func (c *NetlifyConfig) Validate() error

Validate ensures that the configuration is valid

type PasswordAuth added in v0.1.24

type PasswordAuth struct {
	Password string
}

PasswordAuth implements password-based authentication

func (PasswordAuth) SSHAuthMethod added in v0.1.24

func (p PasswordAuth) SSHAuthMethod() ssh.AuthMethod

type Progress added in v0.1.24

type Progress struct {
	Current int64  `json:"current"`
	Total   int64  `json:"total"`
	Status  string `json:"status"`
}

Progress represents the current progress of an operation

type ProgressCallback added in v0.1.24

type ProgressCallback func(current, total int64)

ProgressCallback is a function that will be called to report progress

type ProgressEvent added in v0.1.24

type ProgressEvent struct {
	Event string    `json:"event"`
	Data  *Progress `json:"data"`
}

ProgressEvent represents a SSE event for progress updates

func (*ProgressEvent) ToJSON added in v0.1.24

func (pe *ProgressEvent) ToJSON() string

ToJSON converts the progress event to JSON string

type ProgressReader added in v0.1.24

type ProgressReader struct {
	Reader     io.Reader
	Total      int64
	OnProgress func(current, total int64)
	// contains filtered or unexported fields
}

ProgressReader wraps an io.Reader to track read progress

func (*ProgressReader) Read added in v0.1.24

func (pr *ProgressReader) Read(p []byte) (int, error)

Read implements io.Reader

type ProgressTracker added in v0.1.24

type ProgressTracker interface {
	// OnProgress is called to report progress
	OnProgress(current, total int64)
}

ProgressTracker is an interface for tracking progress of operations

type SCPConfig added in v0.1.24

type SCPConfig struct {
	Username   string
	Hostname   string
	Port       int
	RemotePath string
}

SCPConfig defines the configuration for SCP deployment

func (*SCPConfig) Validate added in v0.1.24

func (s *SCPConfig) Validate() error

type SCPResult added in v0.1.24

type SCPResult struct {
	ServerPath string
	HostName   string
	Message    string
	Size       int64
}

SCPResult represents the result of an SCP deployment

func (SCPResult) GetID added in v0.1.24

func (r SCPResult) GetID() string

GetID implements Result interface

func (SCPResult) GetMessage added in v0.1.24

func (r SCPResult) GetMessage() string

GetMessage implements Result interface

func (SCPResult) GetSize added in v0.1.24

func (r SCPResult) GetSize() int64

func (SCPResult) GetURL added in v0.1.24

func (r SCPResult) GetURL() string

GetURL implements Result interface

Jump to

Keyboard shortcuts

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