Documentation
¶
Overview ¶
Package utils exposes helpers for robot handing of data
Index ¶
- func ConvertBoolToString(p *bool, t, f string) string
- func GetBool(p *bool) bool
- func GetString(p *string) string
- func GetValue[V ...](p *V) *V
- func IsValidEmail(email string) bool
- func LoadFromYaml(path string, receiver interface{}) error
- func LoadSingleSecret(path string) ([]byte, error)
- func LogIfHasError(logger *logrus.Entry, err error)
- func ResourceIsExist(path string, logger *logrus.Entry, fn [2]func()) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBoolToString ¶
func GetValue ¶
func GetValue[V openapi.Permission | resty.Response | openapi.CommitUser | openapi.Commit | openapi.User | time.Time | openapi.Milestone | openapi.RepositoryCommit | openapi.Timestamp | openapi.PullRequestBranch | github.PullRequestBranch | gitee.ProjectMemberPermissionDetail | gitee.UserBasic | gitee.User | gitee.Milestone | gitee.GitCommit | gitee.GitUser | gitee.PullRequestFilePath | openapi.CommitPatch | gitee.BasicInfo | gitee.BranchCommit | gitee.Commit | openapi.MergeAbleState](p *V) *V
func IsValidEmail ¶
func LoadFromYaml ¶
func LoadSingleSecret ¶
LoadSingleSecret reads and returns the value of a single file.
func LogIfHasError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.