swift

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 12 Imported by: 1

README

Swift Driver

Status: Not for production, experimental only

This driver provides an example of a Swift cluster deployment. The cluster is configured with one replica rings and can be used to test the Swift API.

Deployment

The file examples/swift/cluster.yml contains an example deployment. For quick testing you can use minikube for a single node deployment or try kubernetes-swift for a 3 node deployment.

$ kubectl create -f examples/swift/cluster.yaml

No dynamic provisioning or persistent volumes will be created since this is a fake storage system deployment. All data is being stored inside container and will be deleted once the containers are deleted.

You can check the status of the swift cluster running the following commands:

$ kubectl get services
$ curl -i http://<public-node-ip>:<node-port>/healthcheck

Or if you have the swift client installed, you can test upload and download

$ echo 'hello world' > hw
$ swift -A http://<public-node-ip>:<node-port>/auth/v1.0 -U test:tester -K testing upload c1 hw
$ swift -A http://<public-node-ip>:<node-port>/auth/v1.0 -U test:tester -K list c1

Checkout this asciicast for a demo of deploying quartermaster and swift cluster:

asciicast

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

This mock storage system serves as an example driver for developers

Types

type SwiftStorage

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

func (*SwiftStorage) AddCluster

func (st *SwiftStorage) AddCluster(c *spec.StorageCluster) (*spec.StorageCluster, error)

func (*SwiftStorage) AddNode

func (st *SwiftStorage) AddNode(s *spec.StorageNode) (*spec.StorageNode, error)

func (*SwiftStorage) DeleteCluster

func (st *SwiftStorage) DeleteCluster(c *spec.StorageCluster) error

func (*SwiftStorage) DeleteNode

func (st *SwiftStorage) DeleteNode(s *spec.StorageNode) error

func (*SwiftStorage) Init

func (st *SwiftStorage) Init() error

func (*SwiftStorage) MakeDeployment

func (st *SwiftStorage) MakeDeployment(s *spec.StorageNode,
	old *v1beta1.Deployment) (*v1beta1.Deployment, error)

func (*SwiftStorage) Type

func (*SwiftStorage) UpdateCluster

func (st *SwiftStorage) UpdateCluster(old *spec.StorageCluster,
	new *spec.StorageCluster) error

func (*SwiftStorage) UpdateNode

func (st *SwiftStorage) UpdateNode(s *spec.StorageNode) (*spec.StorageNode, error)

Jump to

Keyboard shortcuts

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