Documentation
¶
Overview ¶
Copyright 2017 The Goock Authors.
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 2017 The Goock Authors.
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 ¶
- Variables
- func BeautifyVolumeInfo(info connector.VolumeInfo)
- func FetchVolumeInfo(sessions []model.ISCSISession, lun int) (connector.VolumeInfo, error)
- func HandleExtend(args ...string) error
- func HandleFCConnect(args ...string) error
- func HandleFCExtend(args ...string) error
- func HandleISCSIConnect(args ...string) error
- func HandleISCSIDisconnect(args ...string) error
- func HandleISCSIExtend(args ...string) error
- func InitLog(debug bool) error
- func Session2ConnectionProperty(sessions []model.ISCSISession, lun int) connector.ConnectionProperty
- func SetISCSIConnector(iscsi connector.ISCSIInterface)
- func ValidateLunId(lunIds []string) ([]int, error)
Constants ¶
This section is empty.
Variables ¶
var VOLUME_FORMAT = `Volume Information:
Multipath : %s
Single paths :
%s
Multipath ID : %s
WWN : %s
`
Functions ¶
func BeautifyVolumeInfo ¶
func BeautifyVolumeInfo(info connector.VolumeInfo)
func FetchVolumeInfo ¶
func FetchVolumeInfo(sessions []model.ISCSISession, lun int) (connector.VolumeInfo, error)
func HandleExtend ¶
Handle the Extend request based the device type
func HandleFCConnect ¶
func HandleFCExtend ¶
func HandleISCSIConnect ¶
func HandleISCSIDisconnect ¶
func HandleISCSIExtend ¶
func Session2ConnectionProperty ¶
func Session2ConnectionProperty(sessions []model.ISCSISession, lun int) connector.ConnectionProperty
func SetISCSIConnector ¶
func SetISCSIConnector(iscsi connector.ISCSIInterface)
func ValidateLunId ¶
Types ¶
This section is empty.