Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SubmitReplicationJob(*Replication) error StopReplicationJobs(policyID int64) error }
Client defines the methods that a jobservice client should implement
type Config ¶
type Config struct {
Secret string
}
Config contains configuration items needed for DefaultClient
type DefaultClient ¶
type DefaultClient struct {
// contains filtered or unexported fields
}
DefaultClient provides a default implement for the interface Client
func NewDefaultClient ¶
func NewDefaultClient(endpoint string, cfg *Config) *DefaultClient
NewDefaultClient returns an instance of DefaultClient
func (*DefaultClient) StopReplicationJobs ¶
func (d *DefaultClient) StopReplicationJobs(policyID int64) error
StopReplicationJobs stop replication jobs of the policy specified by the policy ID
func (*DefaultClient) SubmitReplicationJob ¶
func (d *DefaultClient) SubmitReplicationJob(replication *Replication) error
SubmitReplicationJob submits a replication job to the jobservice
Click to show internal directories.
Click to hide internal directories.