Documentation ¶
Index ¶
- func Release() (*selfupdate.Release, error)
- func Update(release *selfupdate.Release) error
- type Client
- type Option
- func WithCertPool(pool *x509.CertPool) Option
- func WithHealthWaitTime(duration time.Duration) Option
- func WithLogger(logger *log.Logger) Option
- func WithMTLS(cert tls.Certificate) Option
- func WithPassword(password string) Option
- func WithProxy(proxy string) Option
- func WithRunWaitTime(duration time.Duration) Option
- func WithURL(url string) Option
- func WithUsername(username string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Release ¶ added in v1.3.0
func Release() (*selfupdate.Release, error)
func Update ¶ added in v1.3.0
func Update(release *selfupdate.Release) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Config configures variables for the client
type Option ¶
type Option func(*Client)
func WithCertPool ¶ added in v1.6.0
func WithHealthWaitTime ¶
func WithLogger ¶ added in v1.6.0
func WithMTLS ¶ added in v1.6.0
func WithMTLS(cert tls.Certificate) Option
func WithPassword ¶
func WithRunWaitTime ¶
func WithUsername ¶
Click to show internal directories.
Click to hide internal directories.