Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the Atlas Cloud API.
func (*Client) ReportMigration ¶ added in v0.11.0
func (c *Client) ReportMigration(ctx context.Context, input ReportMigrationInput) error
ReportMigration reports a migration deployment to the Atlas Cloud API.
type DeployedFileInput ¶ added in v0.11.0
type DeployedFileInput struct { Name string `json:"name"` Content string `json:"content"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` Skipped int `json:"skipped"` Applied int `json:"applied"` Error *StmtErrorInput `json:"error,omitempty"` }
DeployedFileInput represents the input type for a deployed file.
type DeployedTargetInput ¶ added in v0.11.0
type DeployedTargetInput struct { ID string `json:"id"` Schema string `json:"schema"` URL string `json:"url"` // URL string without userinfo. }
DeployedTargetInput represents the input type for a deployed target.
type ReportMigrationInput ¶ added in v0.11.0
type ReportMigrationInput struct { ProjectName string `json:"projectName"` EnvName string `json:"envName"` DirName string `json:"dirName"` AtlasVersion string `json:"atlasVersion"` Target DeployedTargetInput `json:"target"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` FromVersion string `json:"fromVersion"` ToVersion string `json:"toVersion"` CurrentVersion string `json:"currentVersion"` Error *string `json:"error,omitempty"` Files []DeployedFileInput `json:"files"` }
ReportMigrationInput represents an input type for a reporting migration deployments.
type StmtErrorInput ¶ added in v0.11.0
StmtErrorInput represents the input type for a statement error.
Click to show internal directories.
Click to hide internal directories.