Documentation ¶
Index ¶
- func BindFlags(o *zap.Options, fs *flag.FlagSet)
- func Condition(c v1beta1.Conditions) (status ci.State)
- func GetCILabels(p *ci.Play) map[string]string
- func GetCINamespacedName(prefix string, play *ci.Play) types.NamespacedName
- func GetDeployNamespacedName(prefix string, play *ci.Play) types.NamespacedName
- func GetDockerImageTag(play *ci.Play) (*url.URL, error)
- func GetDockerImageTagRaw(play *ci.Play) (address string, tag string, err error)
- func GetObjectContain(obj runtime.Object) string
- func IgnoreNotExists(err error) error
- func InNamespace(play *ci.Play) client.InNamespace
- func IsBuildStage(play *ci.Play) bool
- func IsPipelineRunning(pr tkn.PipelineRun) bool
- func JsonEncoderConfig() zapcore.EncoderConfig
- func ParseHostURL(host string) (*url.URL, error)
- func TextEncoderConfig() zapcore.EncoderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Condition ¶
func Condition(c v1beta1.Conditions) (status ci.State)
Condition returns a Play State
func GetCINamespacedName ¶
func GetCINamespacedName(prefix string, play *ci.Play) types.NamespacedName
GetCINamespacedName return CI namespacedName
func GetDeployNamespacedName ¶
func GetDeployNamespacedName(prefix string, play *ci.Play) types.NamespacedName
GetCINamespacedName return CI namespacedName
func GetDockerImageTag ¶
GetDockerImageTag return the URL of the Docker repository
func GetDockerImageTagRaw ¶
GetDockerImageTagRaw return the Docker repository
func IgnoreNotExists ¶
IgnoreNotFound returns nil on NotFound errors. All other values that are not NotFound errors or nil are returned unmodified.
func InNamespace ¶
func InNamespace(play *ci.Play) client.InNamespace
func IsPipelineRunning ¶
func IsPipelineRunning(pr tkn.PipelineRun) bool
IsPipelineRunning return whether or not the pipeline is running
func JsonEncoderConfig ¶
func JsonEncoderConfig() zapcore.EncoderConfig
JsonEncoderConfig returns an opinionated EncoderConfig
func ParseHostURL ¶
ParseHostURL parses a url string, validates the string is a host url, and returns the parsed URL
func TextEncoderConfig ¶
func TextEncoderConfig() zapcore.EncoderConfig
TextEncoderConfig returns an opinionated EncoderConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.