Documentation ¶
Index ¶
- func ExpandTime(ts *captain.TimeValue, auth *authentication.Auth) (time.Time, error)
- func ExpandTimeForBuildScript(ts *captain.TimeValue, auth *authentication.Auth, ...) (time.Time, error)
- func ExpandTimeForProject(ts *captain.TimeValue, auth *authentication.Auth, proj *project.Project) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandTime ¶
ExpandTime returns a timestamp based on the given "--ts" value. If the timestamp was already defined, we just return it. If "now" was given, returns "now" according to the platform. Otherwise, returns the specified timestamp or nil (which falls back on the default Platform timestamp for a given operation)
func ExpandTimeForBuildScript ¶
func ExpandTimeForBuildScript(ts *captain.TimeValue, auth *authentication.Auth, script *buildscript.BuildScript) (time.Time, error)
ExpandTimeForBuildScript is the same as ExpandTimeForProject except that it works off of a buildscript, allowing for fewer API round trips.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.