cloudconfigenv

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new CloudConfigEnv Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

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

func BasicAuth(username, password string) Option

BasicAuth configures the client to use Basic Authentication with the given username and password

func BearerAuth

func BearerAuth(token string) Option

BearerAuth configures the client to use Bearer Authentication with the provided token

func ClientCert

func ClientCert(cert, key []byte) Option

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 Proxy

func Proxy(url *url.URL) Option

Proxy defines a proxy URL for all HTTP requests

func RootCA

func RootCA(caCert []byte) Option

RootCA configures the CA certificate used to sign the server certificate

func TrustStore

func TrustStore(certs map[string][]byte) Option

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL