mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Preference(Timeout) int > time.Duration * Fix odo preference --help for unset examples * Preference(PushTimeout) int > time.Duration * Change set, and unset messages * Preference(RegistryCacheTime) int > time.Duration * use cobra.ExactArgs for set, and unset * mockgen * Unit tests and integration tests * Fix unit test failure * Update k8s.io/utils pkg * Philippe's review * Fix error message * Philippe's review Signed-off-by: Parthvi Vala <pvala@redhat.com> * Add minimum acceptable value for preferences accepting time.Difference type * Fix unit test failure Signed-off-by: Parthvi Vala <pvala@redhat.com> * Add migration plan with a warning, add better error message for incompatible formats Signed-off-by: Parthvi Vala <pvala@redhat.com>
31 lines
781 B
Go
31 lines
781 B
Go
package preference
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Client interface {
|
|
IsSet(parameter string) bool
|
|
SetConfiguration(parameter string, value string) error
|
|
DeleteConfiguration(parameter string) error
|
|
|
|
GetUpdateNotification() bool
|
|
GetTimeout() time.Duration
|
|
GetPushTimeout() time.Duration
|
|
GetEphemeralSourceVolume() bool
|
|
GetConsentTelemetry() bool
|
|
GetRegistryCacheTime() time.Duration
|
|
RegistryHandler(operation string, registryName string, registryURL string, forceFlag bool, isSecure bool) error
|
|
|
|
UpdateNotification() *bool
|
|
Timeout() *time.Duration
|
|
PushTimeout() *time.Duration
|
|
RegistryCacheTime() *time.Duration
|
|
EphemeralSourceVolume() *bool
|
|
ConsentTelemetry() *bool
|
|
RegistryList() *[]Registry
|
|
RegistryNameExists(name string) bool
|
|
|
|
NewPreferenceList() PreferenceList
|
|
}
|