serviceImpl

package
v1.3.8 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: 19 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.

Index

Constants

View Source
const (
	VOLSIZE_KEY   = "X-volsize"
	BLOCKSIZE_KEY = "X-blocksize"
	CHUNKSIZE_KEY = "ccow-chunkmap-chunk-size"
)

Variables

This section is empty.

Functions

func BuildGrpcEndpoints

func BuildGrpcEndpoints(eps *map[string]int, service string, namespace string)

func DeleteServiceLunISCSI

func DeleteServiceLunISCSI(service, cluster, tenant, bucket, lun string, lunId uint32) error

func DeleteServiceObjectNFS

func DeleteServiceObjectNFS(sname string, cluster string, tenant string, bucket string, oldExportId uint32) error

func ISCSIAddLun

func ISCSIAddLun(eps map[string]int, serviceName, clusterName, tenantName, bucketName, objectName string, lunNumber uint32) error

func ISCSIRemoveLun

func ISCSIRemoveLun(eps map[string]int, serviceName, clusterName, tenantName, bucketName, objectName string, lunNumber uint32) error

func InsertServiceObjectISCSI

func InsertServiceObjectISCSI(sname, cluster, tenant, bucket, object string, newLunId uint32, settings VolumeSettings) error

func InsertServiceObjectNFS

func InsertServiceObjectNFS(sname string, cluster string, tenant string, bucket string, newExportId uint32) error

func NFSAddExport

func NFSAddExport(eps map[string]int, msg *proto.ServeRequest, exportId uint32) error

func NFSRemoveExport

func NFSRemoveExport(eps map[string]int, msg *proto.ServeRequest, exportId uint32) error

func NewExportIdNFS

func NewExportIdNFS(sname string, cluster string, tenant string, bucket string) (uint32, error)

func NewLunIdISCSI

func NewLunIdISCSI(sname, cluster, tenant, bucket, lun string) (uint32, error)

func OldExportIdNFS

func OldExportIdNFS(sname string, cluster string, tenant string, bucket string) (uint32, error)

func ServiceServeISCSI

func ServiceServeISCSI(sname string, opath string, opts map[string]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

Types

type ServiceImpl

type ServiceImpl struct {
}

func (*ServiceImpl) Serve

func (*ServiceImpl) ServiceCreate

func (*ServiceImpl) ServiceDelete

func (*ServiceImpl) ServiceList

func (*ServiceImpl) ServiceObjectList

func (*ServiceImpl) ServiceShow

func (*ServiceImpl) SetParam

func (*ServiceImpl) Unserve

type VolumeSettings

type VolumeSettings struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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