Documentation
¶
Index ¶
- func Release() (*selfupdate.Release, error)
- func Update(release *selfupdate.Release) error
- type Client
- type Option
- func WithClient(client pb.HTTPClient) Option
- func WithHealthWaitTime(duration time.Duration) 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 {
Username string // Username for the plattform
Password string // Password for teh plattform
URL string // URL of the plattform https://myopenfactory.net/pb/ for example
ID string
RunWaitTime time.Duration
HealthWaitTime time.Duration
CertificateNotAfter time.Time
// contains filtered or unexported fields
}
Config configures variables for the client
type Option ¶
type Option func(*Client)
func WithClient ¶
func WithClient(client pb.HTTPClient) Option
func WithHealthWaitTime ¶
func WithPassword ¶
func WithRunWaitTime ¶
func WithUsername ¶
Click to show internal directories.
Click to hide internal directories.