Documentation ¶
Index ¶
- type Client
- type Option
- func WithCA(ca string) Option
- func WithCert(cert string) Option
- func WithClient(client pb.HTTPClient) Option
- func WithHealthWaitTime(duration time.Duration) Option
- func WithPassword(password 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 ¶
This section is empty.
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 ClientCert string // User client certificate in pem format CA string // ca file for connections to the plattform ID string RunWaitTime time.Duration HealthWaitTime time.Duration // 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.