Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirectory ¶
CopyDirectory copy the entire directory to another destination
func GetMillis ¶ added in v0.45.0
func GetMillis() int64
GetMillis is a convenience method to get milliseconds since epoch.
func Retry ¶ added in v0.18.0
Retry is retrying a function for a maximum number of attempts and time
func TimeFromMillis ¶ added in v0.44.0
TimeFromMillis converts time in milliseconds to time.Time.
Types ¶
type ResourceUtil ¶ added in v0.17.0
type ResourceUtil struct {
// contains filtered or unexported fields
}
ResourceUtil is used for calling any filestore type.
func NewResourceUtil ¶ added in v0.17.0
func NewResourceUtil(instanceID string, awsClient *aws.Client) *ResourceUtil
NewResourceUtil returns a new instance of ResourceUtil.
func (*ResourceUtil) GetDatabase ¶ added in v0.17.0
func (r *ResourceUtil) GetDatabase(installationID, dbType string) model.Database
GetDatabase returns the Database interface that matches the installationID and DB type.
func (*ResourceUtil) GetDatabaseForInstallation ¶ added in v0.45.0
func (r *ResourceUtil) GetDatabaseForInstallation(installation *model.Installation) model.Database
GetDatabaseForInstallation returns the Database interface that matches the installation.
func (*ResourceUtil) GetFilestore ¶ added in v0.17.0
func (r *ResourceUtil) GetFilestore(installation *model.Installation) model.Filestore
GetFilestore returns the Filestore interface that matches the installation.
Click to show internal directories.
Click to hide internal directories.