Documentation ¶
Index ¶
- Constants
- func DurationStrSince(since time.Time) string
- func ExecuteShellCommandSilent(title string, shellCmd string)
- func ExecuteShellCommandWithResponse(title string, shellCmd string) string
- func MarshalUnmarshal(datagram *Datagram, data interface{})
- func MicroSecSince(since time.Time) int64
- func MilliSecSince(since time.Time) int64
- func PrettyPrint(i interface{})
- func PrettyPrintJSON(input []byte)
- func PrettyPrintString(i interface{}) string
- type Command
- type Datagram
- type HelmData
- type HelmDependency
- type HelmEntry
- type JobStateEnum
- type Stats
- type StatsData
- type UniqueStringArray
- type Version
Constants ¶
View Source
const PingSeconds = 10
Variables ¶
This section is empty.
Functions ¶
func DurationStrSince ¶
func ExecuteShellCommandSilent ¶ added in v1.5.7
func ExecuteShellCommandWithResponse ¶ added in v1.5.7
func MarshalUnmarshal ¶
func MarshalUnmarshal(datagram *Datagram, data interface{})
func MicroSecSince ¶
func MilliSecSince ¶
func PrettyPrint ¶
func PrettyPrint(i interface{})
func PrettyPrintJSON ¶
func PrettyPrintJSON(input []byte)
func PrettyPrintString ¶
func PrettyPrintString(i interface{}) string
Types ¶
type Command ¶
type Command struct { Id string `json:"id"` JobId string `json:"jobId"` ProjectId string `json:"projectId"` NamespaceId *string `json:"namespaceId,omitempty"` ServiceId *string `json:"serviceId,omitempty"` Title string `json:"title"` Message string `json:"message,omitempty"` StartedAt string `json:"startedAt"` State JobStateEnum `json:"state"` DurationMs int64 `json:"durationMs"` MustSucceed bool `json:"mustSucceed"` ReportToNotificationSvc bool `json:"reportToNotificationService"` IgnoreError bool `json:"ignoreError"` BuildId int `json:"buildId,omitempty"` Started time.Time }
type Datagram ¶
type Datagram struct { Id string `json:"id" validate:"required"` Pattern string `json:"pattern" validate:"required"` Payload interface{} `json:"payload,omitempty"` Err string `json:"err,omitempty"` CreatedAt time.Time `json:"-"` }
func CreateDatagram ¶
func CreateDatagramAck ¶
func CreateDatagramFrom ¶
func CreateDatagramRequest ¶
func CreateEmptyDatagram ¶
func CreateEmptyDatagram() Datagram
func (*Datagram) DisplayBeautiful ¶
func (d *Datagram) DisplayBeautiful()
func (*Datagram) DisplayReceiveSummary ¶
func (d *Datagram) DisplayReceiveSummary()
func (*Datagram) DisplaySentSummary ¶
func (d *Datagram) DisplaySentSummary()
func (*Datagram) DisplaySentSummaryEvent ¶
func (*Datagram) DisplayStreamSummary ¶
func (d *Datagram) DisplayStreamSummary()
type HelmDependency ¶
type HelmEntry ¶
type HelmEntry struct { APIVersion string `yaml:"apiVersion"` AppVersion string `yaml:"appVersion"` Dependencies []HelmDependency `yaml:"dependencies"` Created time.Time `yaml:"created"` Description string `yaml:"description"` Digest string `yaml:"digest"` Name string `yaml:"name"` Urls []string `yaml:"urls"` Version string `yaml:"version"` }
type JobStateEnum ¶ added in v1.5.7
type JobStateEnum string
const ( JobStateFailed JobStateEnum = "FAILED" JobStateSucceeded JobStateEnum = "SUCCEEDED" JobStateStarted JobStateEnum = "STARTED" JobStatePending JobStateEnum = "PENDING" JobStateCanceled JobStateEnum = "CANCELED" JobStateTimeout JobStateEnum = "TIMEOUT" )
type Stats ¶
type Stats struct { Cluster string `json:"cluster"` Namespace string `json:"namespace"` PodName string `json:"podName"` Cpu int64 `json:"cpu"` CpuLimit int64 `json:"cpuLimit"` Memory int64 `json:"memory"` MemoryLimit int64 `json:"memoryLimit"` EphemeralStorageLimit int64 `json:"ephemeralStorageLimit"` StartTime string `json:"startTime"` }
type UniqueStringArray ¶
type UniqueStringArray struct {
// contains filtered or unexported fields
}
func NewUniqueStringArray ¶
func NewUniqueStringArray() UniqueStringArray
func (*UniqueStringArray) Add ¶
func (d *UniqueStringArray) Add(s string)
func (*UniqueStringArray) Display ¶
func (d *UniqueStringArray) Display() string
Click to show internal directories.
Click to hide internal directories.