Documentation
¶
Index ¶
Constants ¶
View Source
const (
ClientInstanceKey = `SQLClient`
)
Variables ¶
View Source
var (
ErrCredentialsNotFound = errors.New("credentials not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Connect(string, interface{}) error
Connection() (string, string)
CreateCredentials(cloudrunner.Credentials) error
CreateDeployment(cloudrunner.Deployment) error
DB() *gorm.DB
DeleteCredentials(string) error
GetCredentials(string) (cloudrunner.Credentials, error)
GetDeployment(string) (cloudrunner.Deployment, error)
ListCredentials() ([]cloudrunner.Credentials, error)
UpdateDeployment(cloudrunner.Deployment) error
WithHost(string)
WithName(string)
WithPass(string)
WithUser(string)
}
Client holds the DB connection and makes all queries to the DB.
Click to show internal directories.
Click to hide internal directories.