Documentation ¶
Index ¶
- Constants
- func BackupConfigModelToResource(model *models.BackupConfig) *v1.Secret
- func BackupConfigResourceToModel(resource *v1.Secret) *models.BackupConfig
- func CreateBackupResource(client rest.Interface, ns, name, schedule string) error
- func CreateBackupRestoreResource(client rest.Interface, ns, name, backup, database string) error
- func DeleteBackupResource(client rest.Interface, ns, name string) error
- func GetBackupResource(client rest.Interface, ns, name string) (*kuberlogicv1.KuberLogicBackupSchedule, error)
- func JoinID(ns, name string) (string, error)
- func SplitID(str string) (string, string, error)
- func UpdateBackupResource(client rest.Interface, ns, name, schedule string) error
- type BadRequest
Constants ¶
View Source
const BadRequestCode int = 400
Variables ¶
This section is empty.
Functions ¶
func BackupConfigModelToResource ¶
func BackupConfigModelToResource(model *models.BackupConfig) *v1.Secret
func BackupConfigResourceToModel ¶
func BackupConfigResourceToModel(resource *v1.Secret) *models.BackupConfig
func CreateBackupResource ¶
TODO: Should be moved into operator's package/repo
func GetBackupResource ¶
func GetBackupResource(client rest.Interface, ns, name string) (*kuberlogicv1.KuberLogicBackupSchedule, error)
Types ¶
type BadRequest ¶
func BadRequestFromError ¶
func BadRequestFromError(err error) *BadRequest
func (*BadRequest) SetPayload ¶
func (o *BadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the kuberlogic add bad request response
func (*BadRequest) WithPayload ¶
func (o *BadRequest) WithPayload(payload *models.Error) *BadRequest
WithPayload adds the payload to the kuberlogic add bad request response
func (*BadRequest) WriteResponse ¶
func (o *BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Click to show internal directories.
Click to hide internal directories.