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 GetCINamespacedName2(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, uri 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 LookupEnvOrBool(key string, defaultVal bool) bool
- func LookupEnvOrString(key string, defaultVal string) string
- func Message(c v1beta1.Conditions) string
- func ParseHostURL(host string) (*url.URL, error)
- func TextEncoderConfig() zapcore.EncoderConfig
- type ConfigFlag
- type LevelFlag
- type OutputFormatFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Condition ¶
func Condition(c v1beta1.Conditions) (status ci.State)
Condition returns a kubernetes State
func GetCINamespacedName ¶
func GetCINamespacedName(prefix string, play *ci.Play) types.NamespacedName
GetCINamespacedName return CI namespacedName
func GetCINamespacedName2 ¶ added in v0.1.7
func GetCINamespacedName2(prefix string, play *ci.Play) types.NamespacedName
GetCINamespacedName2 return CI namespacedName
func GetDeployNamespacedName ¶
func GetDeployNamespacedName(prefix string, play *ci.Play) types.NamespacedName
GetDeployNamespacedName return CI namespacedName
func GetDockerImageTag ¶
GetDockerImageTag return the URL of the Docker repository
func GetDockerImageTagRaw ¶
GetDockerImageTagRaw return the Docker repository
func IgnoreNotExists ¶
IgnoreNotExists returns nil on NotExist errors. All other values that are not NotExist errors or nil are returned unmodified.
func InNamespace ¶
func InNamespace(play *ci.Play) client.InNamespace
func IsBuildStage ¶
IsBuildStage check whether the stage is build or not
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 LookupEnvOrBool ¶ added in v0.3.0
LookupEnvOrBool adds the capability to get env instead of param flag
func LookupEnvOrString ¶ added in v0.3.0
LookupEnvOrString adds the capability to get env instead of param flag
func Message ¶ added in v0.4.0
func Message(c v1beta1.Conditions) string
Message returns a kubernetes Message
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 ¶
type ConfigFlag ¶ added in v0.9.3
type ConfigFlag struct {
// contains filtered or unexported fields
}
func (ConfigFlag) Set ¶ added in v0.9.3
func (f ConfigFlag) Set(flagValue string) error
func (ConfigFlag) String ¶ added in v0.9.3
func (f ConfigFlag) String() string
type OutputFormatFlag ¶ added in v0.9.3
OutputFormatFlag contains structure for managing zap encoding
func (*OutputFormatFlag) Set ¶ added in v0.9.3
func (o *OutputFormatFlag) Set(flagValue string) error
func (*OutputFormatFlag) String ¶ added in v0.9.3
func (o *OutputFormatFlag) String() string