Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrJobRunning = errors.Sentinel("job running") ErrJobUpdated = errors.Sentinel("job updated") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateWorkflow ¶
type Config ¶
type Config struct { Endpoints []*Endpoint `cfg:"endpoints"` CertFile string `cfg:"cert_file"` KeyFile string `cfg:"key_file"` Logger Logger }
func (*Config) BuildClient ¶
type ConfigOption ¶
type ConfigOption func(*Config)
func WithCertKeyFiles ¶
func WithCertKeyFiles(certFile, keyFile string) ConfigOption
func WithEndpoint ¶
func WithEndpoint(ep *Endpoint) ConfigOption
func WithLogger ¶
func WithLogger(logger Logger) ConfigOption
type Endpoint ¶
type Endpoint struct { URL string `cfg:"url"` Username string `cfg:"username"` Password string `cfg:"password"` CAFile string `cfg:"ca_file"` }
func NewEndpoint ¶
func NewEndpoint(url, username, password string, options ...EndpointOption) *Endpoint
type EndpointOption ¶
type EndpointOption func(*Endpoint)
func WithCAFile ¶
func WithCAFile(filename string) EndpointOption
Click to show internal directories.
Click to hide internal directories.