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 BeautifyHostInfo(info connector.HostInfo)
- func BeautifyVolumeInfo(info connector.VolumeInfo)
- func Convert2ConnectionProperty(wwns []string, lunId string) connector.ConnectionProperty
- func FetchVolumeInfo(sessions []model.ISCSISession, lun int) (connector.VolumeInfo, error)
- func HanddleDisconnect(args ...string) error
- func HandleConnect(args ...string) 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 HandleInfo(args ...string) error
- func InitLog(debug bool) error
- func IsFcLike(data string) bool
- func IsIpLike(data string) bool
- func IsLunLike(data string) bool
- func Session2ConnectionProperty(sessions []model.ISCSISession, lun int) connector.ConnectionProperty
- func SetFcConnector(fc connector.FibreChannelInterface)
- func SetISCSIConnector(iscsi connector.ISCSIInterface)
- func ValidateLunId(lunIDs []string) ([]int, error)
Constants ¶
This section is empty.
Variables ¶
var HostInfoFormat = `` /* 162-byte string literal not displayed */
var VolumeFormat = `Volume Information:
Multipath : %s
Single paths :
%s
Multipath ID : %s
WWN : %s
`
Functions ¶
func BeautifyHostInfo ¶ added in v0.1.1
BeautifyHostInfo prints the output to console
func BeautifyVolumeInfo ¶
func BeautifyVolumeInfo(info connector.VolumeInfo)
func Convert2ConnectionProperty ¶ added in v0.1.1
func Convert2ConnectionProperty(wwns []string, lunId string) connector.ConnectionProperty
func FetchVolumeInfo ¶
func FetchVolumeInfo(sessions []model.ISCSISession, lun int) (connector.VolumeInfo, error)
func HanddleDisconnect ¶ added in v0.1.1
HandleDisconnect dispatches the cli to iscsi/fc respectively.
func HandleConnect ¶ added in v0.1.1
HandleConnect dispatches the cli to iscsi/fc respectively.
func HandleExtend ¶
HandleExtend handles the Extend request based the device type
func HandleFCConnect ¶
func HandleFCExtend ¶
func HandleISCSIConnect ¶
func HandleISCSIDisconnect ¶
func HandleISCSIExtend ¶
func HandleInfo ¶ added in v0.1.1
func Session2ConnectionProperty ¶
func Session2ConnectionProperty(sessions []model.ISCSISession, lun int) connector.ConnectionProperty
func SetFcConnector ¶ added in v0.1.1
func SetFcConnector(fc connector.FibreChannelInterface)
func SetISCSIConnector ¶
func SetISCSIConnector(iscsi connector.ISCSIInterface)
func ValidateLunId ¶
Types ¶
This section is empty.