Documentation ¶
Index ¶
- Constants
- func AddSchemes(opt *client.Options, gv schema.GroupVersion, types ...runtime.Object)
- func ApiServiceName() string
- func AuthClient() (*authorization.AuthorizationV1Client, error)
- func CheckAndCreateObject(obj interface{}, parent metav1.Object, c client.Client, scheme *runtime.Scheme, ...) error
- func Client(options client.Options) (client.Client, error)
- func DecryptPassword(s string) (string, error)
- func DirExists(path string) bool
- func EncryptPassword(str string) (string, error)
- func FileExists(path string) bool
- func GetTupLogger(subresource interface{}, resNamespace, resName string) logr.Logger
- func IsEncrypted(s string) bool
- func Namespace() (string, error)
- func RandString(n int) string
- func RespondError(w http.ResponseWriter, code int, msg string) error
- func RespondJSON(w http.ResponseWriter, data interface{}) error
- type ErrorResponse
- type TupLogger
Constants ¶
View Source
const EncKeySize = 32
Variables ¶
This section is empty.
Functions ¶
func AddSchemes ¶
func ApiServiceName ¶
func ApiServiceName() string
func AuthClient ¶
func AuthClient() (*authorization.AuthorizationV1Client, error)
func CheckAndCreateObject ¶
func DecryptPassword ¶
func EncryptPassword ¶
func FileExists ¶
func GetTupLogger ¶
func IsEncrypted ¶
func RandString ¶
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.