Documentation ¶
Index ¶
- Variables
- func Ago(t time.Time) string
- func AppEnvironment(p structs.Provider, app string) (structs.Environment, error)
- func AppManifest(p structs.Provider, app string) (*manifest.Manifest, *structs.Release, error)
- func Archive(file string) (io.Reader, error)
- func AtomStatus(status string) string
- func CertificateCA(host string, ca *tls.Certificate) (*tls.Certificate, error)
- func CertificateParts(c *tls.Certificate) ([]byte, []byte, error)
- func CertificateSelfSigned(host string) (*tls.Certificate, error)
- func CoalesceInt(ii ...int) int
- func CoalesceString(ss ...string) string
- func DefaultBool(v *bool, def bool) bool
- func DefaultDuration(v *time.Duration, def time.Duration) time.Duration
- func DefaultInt(v *int, def int) int
- func DefaultInt32(v *int32, def int32) int32
- func DefaultString(v *string, def string) string
- func Duration(start, end time.Time) string
- func EnvDiff(a, b string) (string, error)
- func FileExists(filename string) bool
- func FormatYAML(data []byte) ([]byte, error)
- func Get(url string) ([]byte, error)
- func InitializeKlog()
- func InsecureHTTPClient() *http.Client
- func LinuxRelease() (string, error)
- func NewDefaultTransport() *http.Transport
- func Percent(num float64) string
- func Pipe(a, b io.ReadWriter) error
- func RandomString(length int) (string, error)
- func RebaseArchive(r io.Reader, src, dst string) (io.Reader, error)
- func ReleaseLatest(p structs.Provider, app string) (*structs.Release, error)
- func ReleaseManifest(p structs.Provider, app, release string) (*manifest.Manifest, *structs.Release, error)
- func Retry(times int, interval time.Duration, fn func() error) error
- func Stream(w io.Writer, r io.Reader) error
- func StreamAppLogs(ctx context.Context, p structs.Provider, w io.Writer, app string)
- func StreamSystemLogs(ctx context.Context, p structs.Provider, w io.Writer)
- func Tarball(dir string) ([]byte, error)
- func Testdata(name string) ([]byte, error)
- func Tick(d time.Duration, fn Ticker)
- func Unarchive(r io.Reader, target string) error
- func UpperName(name string) string
- func Wait(interval time.Duration, timeout time.Duration, times int, ...) error
- func WaitContext(ctx context.Context, interval time.Duration, timeout time.Duration, times int, ...) error
- func WaitForAppDeleted(p structs.Provider, w io.Writer, app string) error
- func WaitForAppRunning(p structs.Provider, app string) error
- func WaitForAppRunningContext(ctx context.Context, p structs.Provider, app string) error
- func WaitForAppWithLogs(p structs.Provider, w io.Writer, app string) error
- func WaitForAppWithLogsContext(ctx context.Context, p structs.Provider, w io.Writer, app string) error
- func WaitForProcessRunning(p structs.Provider, w io.Writer, app, pid string) error
- func WaitForRackRunning(p structs.Provider, w io.Writer) error
- func WaitForRackWithLogs(p structs.Provider, w io.Writer) error
- func WriteFile(filename string, data []byte, mode os.FileMode) error
- type ReadWriter
- type Ticker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CompactSortableTime = "20060102150405000000000" PrintableTime = "2006-01-02 15:04:05" SortableTime = "20060102.150405.000000000" )
View Source
var (
ProviderWaitDuration = 5 * time.Second
)
Functions ¶
func AppEnvironment ¶
func AppManifest ¶
func AtomStatus ¶
func CertificateCA ¶
func CertificateCA(host string, ca *tls.Certificate) (*tls.Certificate, error)
func CertificateParts ¶
func CertificateParts(c *tls.Certificate) ([]byte, []byte, error)
func CertificateSelfSigned ¶
func CertificateSelfSigned(host string) (*tls.Certificate, error)
func CoalesceInt ¶
func CoalesceString ¶
func DefaultBool ¶
func DefaultInt ¶
func DefaultInt32 ¶
func DefaultString ¶
func FileExists ¶
func FormatYAML ¶
func InitializeKlog ¶
func InitializeKlog()
func InsecureHTTPClient ¶
func LinuxRelease ¶
func NewDefaultTransport ¶
func Pipe ¶
func Pipe(a, b io.ReadWriter) error
func RandomString ¶
func ReleaseManifest ¶
func StreamAppLogs ¶
func WaitContext ¶
func WaitForAppWithLogs ¶
func WaitForProcessRunning ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.