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
- func CreateKeyring(context *clusterd.Context, hostName, id string) (string, error)
- func NewAgent() *mdsAgent
- func RemoveFileSystem(context *clusterd.Context, fsr model.FilesystemRequest) error
- func Run(context *clusterd.Context, config *Config) error
- type Config
- type FileSystem
- type Leader
Constants ¶
const (
FileSystemKey = "fs"
)
const (
MDSKey = "mds"
)
Variables ¶
This section is empty.
Functions ¶
func CreateKeyring ¶
create a keyring for the mds client with a limited set of privileges
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.
Types ¶
type Config ¶
type Config struct { ID string Keyring string InProc bool ClusterInfo *mon.ClusterInfo }
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, 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 ¶
func (f *FileSystem) CreateFilesystem(cluster *mon.ClusterInfo) error
func (*FileSystem) DeleteFromDesiredState ¶
func (f *FileSystem) DeleteFromDesiredState() error
Remove the file system from the desired state.