Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // SetClient sets the http.Client. SetClient(*http.Client) // SetAddress sets the server address. SetAddress(string) // ArtifactPost creates a new artifact. ArtifactPost(artifact *dx.Artifact) (*dx.Artifact, error) // ArtifactsGet returns all artifacts in the database within the given constraints ArtifactsGet( repo, branch string, event *dx.GitEvent, sourceBranch string, sha string, limit, offset int, since, until *time.Time, ) ([]*dx.Artifact, error) // ReleasesGet returns all releases from the gitops repo within the given constraints ReleasesGet( app string, env string, limit, offset int, gitRepo string, since, until *time.Time, ) ([]*dx.Release, error) // ReleasesPost releases the given artifact to the given environment ReleasesPost(env string, artifactID string) (string, error) // RollbackPost rolls back to the given sha RollbackPost(env string, app string, targetSHA string) (string, error) // TrackGet returns the state of an event TrackGet(trackingID string) (string, string, error) }
Client is used to communicate with a Drone server.
Click to show internal directories.
Click to hide internal directories.