Files
odo/pkg/preference/preference.go
Charlie Drage 9fc77eeeb6 Move registry to preference (#5428)
<!--
Thank you for opening a PR! Here are some things you need to know before submitting:

1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Developer-Guidelines
2. Label this PR accordingly with the '/kind' line
3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Writing-and-running-tests
4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/PR-Review

Documentation:

If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Contributing-to-Docs
-->

**What type of PR is this:**

<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind tests
/kind documentation

Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well.
-->
/kind feature

**What does this PR do / why we need it:**

This PR does the following:
- Moves "registry" to preference
- Gets rid of unused preference configuration options
- Reorders the parameters for preference for the usage in --help

**Which issue(s) this PR fixes:**
<!--
Specifying the issue will automatically close it when this PR is merged
-->

https://github.com/redhat-developer/odo/issues/5402

**PR acceptance criteria:**

- [X] Unit test

- [X] Integration test

- [X] Documentation

**How to test changes / Special notes to the reviewer:**
2022-02-10 06:31:56 -05:00

27 lines
701 B
Go

package preference
type Client interface {
IsSet(parameter string) bool
SetConfiguration(parameter string, value string) error
DeleteConfiguration(parameter string) error
GetUpdateNotification() bool
GetTimeout() int
GetPushTimeout() int
GetEphemeralSourceVolume() bool
GetConsentTelemetry() bool
GetRegistryCacheTime() int
RegistryHandler(operation string, registryName string, registryURL string, forceFlag bool, isSecure bool) error
UpdateNotification() *bool
Timeout() *int
PushTimeout() *int
RegistryCacheTime() *int
EphemeralSourceVolume() *bool
ConsentTelemetry() *bool
RegistryList() *[]Registry
RegistryNameExists(name string) bool
NewPreferenceList() PreferenceList
}