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) PushSnapshot ¶
PushSnapshot to the cloud, return the url to the schema snapshot in the cloud.
func (*Client) SnapshotHash ¶
SnapshotHash retrieves the hash of the schema snapshot from the cloud.
type PushSnapshotInput ¶
type PushSnapshotInput struct { ScopeIdent Snapshot *SnapshotInput `json:"snapshot,omitempty"` // The snapshot taken, required if hashMatch is false. HashMatch bool `json:"hashMatch"` // If hash of snapshot matches hash of last snapshot. }
type ScopeIdent ¶
type ScopeIdent struct { URL string `json:"url"` // The (Atlas CLI) URL of the database snapshot. ExtID string `json:"extID,omitempty"` // Optional user defined identifier for an instance. Schemas []string `json:"schemas,omitempty"` // List of schemas to inspect, empty to inspect everything. Exclude []string `json:"exclude,omitempty"` // List of exclude patterns to apply on the inspection. }
type SnapshotHashInput ¶
type SnapshotHashInput struct{ ScopeIdent }
type SnapshotInput ¶
Click to show internal directories.
Click to hide internal directories.