Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudConfigClient ¶
type CloudConfigClient struct {
// contains filtered or unexported fields
}
CloudConfigClient manages connections to a Spring Cloud Config Server
func New ¶
func New(url string, opts ...func(*CloudConfigClient)) (*CloudConfigClient, error)
New creates a new CloudConfigClient for the server URL and options
func (CloudConfigClient) GetConfig ¶
func (client CloudConfigClient) GetConfig(app, label string, profile ...string) ([]byte, error)
GetConfig returns the client config for the given app, label and profile.
func (CloudConfigClient) GetConfigFile ¶
func (client CloudConfigClient) GetConfigFile(file, app, label string, profile ...string) ([]byte, error)
GetConfigFile retrieves an arbitrary config file
type Option ¶
type Option func(*CloudConfigClient)
Option type for the CloudConfigClient
func BasicAuth ¶
BasicAuth configures the client to use Basic Authentication with the given username and password
func BearerAuth ¶
BearerAuth configures the client to use Bearer Authentication with the provided token
func ClientCert ¶
ClientCert configures the client to use a SSL client certificate
func Insecure ¶
func Insecure() Option
Insecure allows use of URL's without SSL and disregards SSL validation errors
func TrustStore ¶
TrustStore configures the default TLS certificate pool used by the client
type ReconcileCloudConfigEnv ¶
type ReconcileCloudConfigEnv struct {
// contains filtered or unexported fields
}
ReconcileCloudConfigEnv reconciles a CloudConfigEnv object
func (*ReconcileCloudConfigEnv) Reconcile ¶
Reconcile reads that state of the cluster for a CloudConfigEnv object and makes changes based on the state read and what is in the CloudConfigEnv.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.