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.
Index ¶
Constants ¶
const (
FileSystemKey = "fs"
)
const (
MDSKey = "mds"
)
Variables ¶
This section is empty.
Functions ¶
func EnableFileSystem ¶
func EnableFileSystem(context *clusterd.Context, fsr model.FilesystemRequest) error
Configure the given file system instance in the cluster. Multiple file systems are supported.
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.
Types ¶
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) DeleteFromDesiredState ¶
func (f *FileSystem) DeleteFromDesiredState() error
Remove the file system from the desired state.