Documentation ¶
Index ¶
- func AuthClient() (*authorization.AuthorizationV1Client, error)
- func Client(scheme *runtime.Scheme) (client.Client, error)
- func FileExists(path string) bool
- func GetGitCli(cfg *cicdv1.IntegrationConfig) (git.Client, error)
- func Namespace() (string, error)
- func ParseApproversList(str string) ([]string, error)
- func ParseEmailFromUsers(users []string) []string
- func RandomString(length int) string
- func RespondError(w http.ResponseWriter, code int, msg string) error
- func RespondJSON(w http.ResponseWriter, data interface{}) error
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthClient ¶
func AuthClient() (*authorization.AuthorizationV1Client, error)
func FileExists ¶
func ParseApproversList ¶
func ParseEmailFromUsers ¶
func RandomString ¶
RandomString generate random string with lower case alphabets and digits
func RespondError ¶
func RespondError(w http.ResponseWriter, code int, msg string) error
func RespondJSON ¶
func RespondJSON(w http.ResponseWriter, data interface{}) error
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.