Documentation ¶
Overview ¶
* Copyright (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 (c) 2015-2018 Nexenta Systems, Inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 ¶
- Variables
- func Config(sname string, key string, value string) error
- func FormatBytes(b int64) string
- func FormatDuration(ms int64) string
- func FormatMode(m int64) string
- func ServiceCreate(stype string, sname string) error
- func ServiceDelete(name string) error
- func ServiceList(pat string, count int) error
- func ServiceServe(args []string) error
- func ServiceServeDSQL(sname string, bpath string, opts string) error
- func ServiceServeISCSI(sname string, opath string, opts string) error
- func ServiceServeISGW(sname string, bpath string) error
- func ServiceServeNFS(sname string, bpath string) error
- func ServiceServeS3(sname string, tpath string) error
- func ServiceServeSMB(sname string, bpath string) error
- func ServiceUnserve(sname string, bpath string) error
- func ServiceUnserveISCSI(sname string, path string) error
- func ServiceUnserveISGW(sname string, bpath string) error
- func ServiceUnserveNFS(sname string, bpath string) error
- func ServiceUnserveS3(sname string, tpath string) error
- func ServiceUnserveSMB(sname string, bpath string) error
- func Show(name string, stat bool) error
- type Stat
Constants ¶
This section is empty.
Variables ¶
var ( ServiceCmd = &cobra.Command{ Use: "service", Aliases: []string{"s"}, Short: "Service operations such as S3, NFS, SMB, iSCSI, etc", Long: "Service operations such as S3, NFS, SMB, iSCSI, e.g. create, delete, list", } )
Functions ¶
func FormatBytes ¶
func FormatDuration ¶
func FormatMode ¶
func ServiceCreate ¶
func ServiceDelete ¶
func ServiceList ¶
func ServiceServe ¶
func ServiceServeISGW ¶
func ServiceServeNFS ¶
func ServiceServeS3 ¶
func ServiceServeSMB ¶
func ServiceUnserve ¶
func ServiceUnserveISCSI ¶
func ServiceUnserveISGW ¶
func ServiceUnserveNFS ¶
func ServiceUnserveS3 ¶
func ServiceUnserveSMB ¶
Types ¶
type Stat ¶
type Stat struct { Timestamp int64 `json:"timestamp"` Status string `json:"status"` State string `json:"state"` Mode int64 `json:"mode"` Delay int64 `json:"delay"` Version_manifests int64 `json:"version_manifests"` Requests int64 `json:"requests"` Chunk_manifests int64 `json:"chunk_manifests"` Data_chunks int64 `json:"data_chunks"` Snapviews int64 `json:"snapviews"` Bytes int64 `json:"bytes"` Received_data_chunks int64 `json:"received_data_chunks"` Received_bytes int64 `json:"received_bytes"` Latency int64 `json:"latency"` Send_throughput int64 `json:"send_throughput"` Receive_throughput int64 `json:"receive_throughput"` Network_errors int64 `json:"network_errors"` Local_io_errors int64 `json:"local_io_errors"` Remote_io_errors int64 `json:"remote_io_errors"` }
Stat - general stat structure