config

package
v0.0.0-...-098adc7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 1 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStoreConfig

type BlobStoreConfig struct {
	Host     string `json:"host,omitempty"`
	Port     string `json:"port,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

type BlobStoreType

type BlobStoreType int
const (
	DAVBlobStore BlobStoreType = iota
	S3BlobStore
)

func (BlobStoreType) String

func (b BlobStoreType) String() string

type Config

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

func New

func New(persister persister.Persister) *Config

func (*Config) ActiveBlobStore

func (c *Config) ActiveBlobStore() BlobStoreType

func (*Config) BlobStore

func (c *Config) BlobStore() BlobStoreConfig

func (*Config) Load

func (c *Config) Load() error

func (*Config) Loggregator

func (c *Config) Loggregator() string

func (*Config) Password

func (c *Config) Password() string

func (*Config) Receptor

func (c *Config) Receptor() string

func (*Config) S3BlobStore

func (c *Config) S3BlobStore() S3BlobStoreConfig

func (*Config) Save

func (c *Config) Save() error

func (*Config) SetBlobStore

func (c *Config) SetBlobStore(host, port, username, password string)

func (*Config) SetLogin

func (c *Config) SetLogin(username, password string)

func (*Config) SetS3BlobStore

func (c *Config) SetS3BlobStore(accessKey, secretKey, bucketName, region string)

func (*Config) SetTarget

func (c *Config) SetTarget(target string)

func (*Config) Target

func (c *Config) Target() string

func (*Config) Username

func (c *Config) Username() string

type Data

type Data struct {
	Target          string        `json:"target"`
	Username        string        `json:"username,omitempty"`
	Password        string        `json:"password,omitempty"`
	ActiveBlobStore BlobStoreType `json:"active_blob_store"`

	BlobStore   BlobStoreConfig   `json:"dav_blob_store,omitempty"`
	S3BlobStore S3BlobStoreConfig `json:"s3_blob_store,omitempty"`
}

type S3BlobStoreConfig

type S3BlobStoreConfig struct {
	Region     string `json:"region,omitempty"`
	AccessKey  string `json:"access_key,omitempty"`
	SecretKey  string `json:"secret_key,omitempty"`
	BucketName string `json:"bucket_name,omitempty"`
}

Directories

Path Synopsis
fake_blob_store_verifier
This file was generated by counterfeiter
This file was generated by counterfeiter
fake_target_verifier
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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