mds

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2016 The Rook Authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 The Rook Authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 The Rook Authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 The Rook Authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 The Rook Authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	FileSystemKey = "fs"
)
View Source
const (
	MDSKey = "mds"
)

Variables

This section is empty.

Functions

func CreateKeyring added in v0.3.0

func CreateKeyring(conn client.Connection, id string) (string, error)

create a keyring for the mds client with a limited set of privileges

func NewAgent

func NewAgent(factory client.ConnectionFactory) *mdsAgent

func RemoveFileSystem

func RemoveFileSystem(context *clusterd.Context, fsr model.FilesystemRequest) error

Remove the given file system instance in the cluster. Multiple file systems are supported.

func Run added in v0.3.0

func Run(context *clusterd.DaemonContext, config *Config) error

Types

type Config added in v0.3.0

type Config struct {
	ID          string
	Keyring     string
	InProc      bool
	ClusterInfo *mon.ClusterInfo
	mon.CephLauncher
}

type FileSystem

type FileSystem struct {
	ID   string `json:"id"`
	Pool string `json:"pool"`
	// contains filtered or unexported fields
}

A castle file system (an instance of CephFS)

func NewFS

func NewFS(context *clusterd.Context, factory client.ConnectionFactory, id, pool string) *FileSystem

Create a new file service struct

func (*FileSystem) AddToDesiredState

func (f *FileSystem) AddToDesiredState() error

Add the file system to the desired state.

func (*FileSystem) CreateFilesystem added in v0.3.0

func (f *FileSystem) CreateFilesystem(cluster *mon.ClusterInfo) error

func (*FileSystem) DeleteFromDesiredState

func (f *FileSystem) DeleteFromDesiredState() error

Remove the file system from the desired state.

type Leader

type Leader struct {
}

func NewLeader

func NewLeader() *Leader

func (*Leader) Configure

func (r *Leader) Configure(context *clusterd.Context, factory client.ConnectionFactory) error

Apply the desired state to the cluster. The context provides all the information needed to make changes to the service. Initialize CephFS. Must be idempotent.

Jump to

Keyboard shortcuts

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