service

package
v0.0.0-...-ded4e1a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 Config

func Config(sname string, key string, value string) error

func FormatBytes

func FormatBytes(b int64) string

func FormatDuration

func FormatDuration(ms int64) string

func FormatMode

func FormatMode(m int64) string

func ServiceCreate

func ServiceCreate(stype string, sname string) error

func ServiceDelete

func ServiceDelete(name string) error

func ServiceList

func ServiceList(pat string, count int) error

func ServiceServe

func ServiceServe(args []string) error

func ServiceServeDSQL

func ServiceServeDSQL(sname string, bpath string, opts string) error

func ServiceServeISCSI

func ServiceServeISCSI(sname string, opath string, opts string) error

func ServiceServeISGW

func ServiceServeISGW(sname string, bpath string) error

func ServiceServeNFS

func ServiceServeNFS(sname string, bpath string) error

func ServiceServeS3

func ServiceServeS3(sname string, tpath string) error

func ServiceServeSMB

func ServiceServeSMB(sname string, bpath string) error

func ServiceUnserve

func ServiceUnserve(sname string, bpath string) error

func ServiceUnserveISCSI

func ServiceUnserveISCSI(sname string, path string) error

func ServiceUnserveISGW

func ServiceUnserveISGW(sname string, bpath string) error

func ServiceUnserveNFS

func ServiceUnserveNFS(sname string, bpath string) error

func ServiceUnserveS3

func ServiceUnserveS3(sname string, tpath string) error

func ServiceUnserveSMB

func ServiceUnserveSMB(sname string, bpath string) error

func Show

func Show(name string, stat bool) error

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

Jump to

Keyboard shortcuts

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