provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	ServerAddress string `json:"serverAddress,omitempty"`
	Application   string `json:"application,omitempty"`
	Profile       string `json:"profile,omitempty"`
	FileName      string `json:"fileName,omitempty"`
	FileType      string `json:"fileType,omitempty"`
	Raw           string `json:"raw"`
}

type ConfigClient

type ConfigClient interface {
	GetConfig(attributes Attributes) (io.ReadCloser, error)
	GetConfigRaw(attributes Attributes, source string) (io.ReadCloser, error)
}

type Raw

type Raw struct {
	Source string `json:"source,omitempty"`
	Target string `json:"target,omitempty"`
}

type SpringCloudConfigCSIProviderServer

type SpringCloudConfigCSIProviderServer struct {
	// contains filtered or unexported fields
}

func NewSpringCloudConfigCSIProviderServer

func NewSpringCloudConfigCSIProviderServer(socketPath string, httpClient *http.Client, retryBaseWait time.Duration, retryMax uint64) (*SpringCloudConfigCSIProviderServer, error)

NewSpringCloudConfigCSIProviderServer returns CSI provider that uses the spring as the secret backend

func (*SpringCloudConfigCSIProviderServer) Mount

Mount implements a provider csi-provider method

func (*SpringCloudConfigCSIProviderServer) Start

func (*SpringCloudConfigCSIProviderServer) Stop

func (*SpringCloudConfigCSIProviderServer) Version

Version implements a provider csi-provider method

type SpringCloudConfigClient

type SpringCloudConfigClient struct {
	// contains filtered or unexported fields
}

func NewSpringCloudConfigClient

func NewSpringCloudConfigClient(c *http.Client, retryBaseWait time.Duration, retryMax uint64) SpringCloudConfigClient

func (*SpringCloudConfigClient) GetConfig

func (c *SpringCloudConfigClient) GetConfig(attributes Attributes) (io.ReadCloser, error)

GetConfig pulls the config from spring-cloud config server and the server parses it to the specified format if the config contains secrets they are decoded on the server side

func (*SpringCloudConfigClient) GetConfigRaw

func (c *SpringCloudConfigClient) GetConfigRaw(attributes Attributes, source string) (io.ReadCloser, error)

GetConfigRaw pulls the config from spring-cloud-config without parsing or decrypting the secrets

Jump to

Keyboard shortcuts

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