Documentation ¶
Index ¶
Constants ¶
View Source
const CHECKING = 0
View Source
const FAILED = 2
View Source
const SUCCESS = 1
View Source
const TYPE_COMMAND = "command"
View Source
const TYPE_URL = "url"
Variables ¶
This section is empty.
Functions ¶
func Ready ¶
func Ready(client *client.Http, container platforms.IContainer, user *authentication.User, channel chan *ReadinessState, logger *zap.Logger) (bool, error)
func SolveReadiness ¶
func SolveReadiness(client *client.Http, user *authentication.User, container platforms.IContainer, logger *zap.Logger, readiness *Readiness, channel chan *ReadinessState) error
Types ¶
type Readiness ¶
type Readiness struct { Name string URL string Command []string Type string Timeout string Solved bool BodyUnpack map[string]string `json:"-"` Function func() error `json:"-"` Ctx context.Context `json:"-"` Cancel context.CancelFunc `json:"-"` }
func NewReadinessFromDefinition ¶
func NewReadinessFromDefinition(client *client.Http, user *authentication.User, container platforms.IContainer, readiness v1.ContainerReadiness) (*Readiness, error)
type ReadinessResult ¶
type ReadinessResult struct {
Data string
}
type ReadinessState ¶
type ReadinessState struct {
State int8
}
Click to show internal directories.
Click to hide internal directories.