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
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
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
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
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