scan

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CifsscanCifsRequest

type CifsscanCifsRequest struct {
	Node   string `url:"node",json:"node"`     // The cluster node name.
	Server string `url:"server",json:"server"` // The server address (name or IP).

	// The following parameters are optional
	Domain   *string `url:"domain,omitempty",json:"domain,omitempty"`     // SMB domain (Workgroup).
	Password *string `url:"password,omitempty",json:"password,omitempty"` // User password.
	Username *string `url:"username,omitempty",json:"username,omitempty"` // User name.
}

type CifsscanCifsResponse

type CifsscanCifsResponse []*struct {
	Description string `url:"description",json:"description"` // Descriptive text from server.
	Share       string `url:"share",json:"share"`             // The cifs share name.

}

type Client

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

func New

func New(c HTTPClient) *Client

func (*Client) CifsscanCifs

func (c *Client) CifsscanCifs(ctx context.Context, req *CifsscanCifsRequest) (*CifsscanCifsResponse, error)

CifsscanCifs Scan remote CIFS server.

func (*Client) GlusterfsscanGlusterfs

GlusterfsscanGlusterfs Scan remote GlusterFS server.

func (*Client) Index

func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)

Index Index of available scan methods

func (*Client) IscsiscanIscsi

func (c *Client) IscsiscanIscsi(ctx context.Context, req *IscsiscanIscsiRequest) (*IscsiscanIscsiResponse, error)

IscsiscanIscsi Scan remote iSCSI server.

func (*Client) LvmscanLvm

func (c *Client) LvmscanLvm(ctx context.Context, req *LvmscanLvmRequest) (*LvmscanLvmResponse, error)

LvmscanLvm List local LVM volume groups.

func (*Client) LvmthinscanLvmthin

func (c *Client) LvmthinscanLvmthin(ctx context.Context, req *LvmthinscanLvmthinRequest) (*LvmthinscanLvmthinResponse, error)

LvmthinscanLvmthin List local LVM Thin Pools.

func (*Client) NfsscanNfs

func (c *Client) NfsscanNfs(ctx context.Context, req *NfsscanNfsRequest) (*NfsscanNfsResponse, error)

NfsscanNfs Scan remote NFS server.

func (*Client) PbsscanPbs

func (c *Client) PbsscanPbs(ctx context.Context, req *PbsscanPbsRequest) (*PbsscanPbsResponse, error)

PbsscanPbs Scan remote Proxmox Backup Server.

func (*Client) ZfsscanZfs

func (c *Client) ZfsscanZfs(ctx context.Context, req *ZfsscanZfsRequest) (*ZfsscanZfsResponse, error)

ZfsscanZfs Scan zfs pool list on local node.

type GlusterfsscanGlusterfsRequest

type GlusterfsscanGlusterfsRequest struct {
	Node   string `url:"node",json:"node"`     // The cluster node name.
	Server string `url:"server",json:"server"` // The server address (name or IP).

}

type GlusterfsscanGlusterfsResponse

type GlusterfsscanGlusterfsResponse []*struct {
	Volname string `url:"volname",json:"volname"` // The volume name.

}

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

type IndexRequest

type IndexRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

}

type IndexResponse

type IndexResponse []*struct {
	Method string `url:"method",json:"method"`
}

type IscsiscanIscsiRequest

type IscsiscanIscsiRequest struct {
	Node   string `url:"node",json:"node"`     // The cluster node name.
	Portal string `url:"portal",json:"portal"` // The iSCSI portal (IP or DNS name with optional port).

}

type IscsiscanIscsiResponse

type IscsiscanIscsiResponse []*struct {
	Portal string `url:"portal",json:"portal"` // The iSCSI portal name.
	Target string `url:"target",json:"target"` // The iSCSI target name.

}

type LvmscanLvmRequest

type LvmscanLvmRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

}

type LvmscanLvmResponse

type LvmscanLvmResponse []*struct {
	Vg string `url:"vg",json:"vg"` // The LVM logical volume group name.

}

type LvmthinscanLvmthinRequest

type LvmthinscanLvmthinRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.
	Vg   string `url:"vg",json:"vg"`
}

type LvmthinscanLvmthinResponse

type LvmthinscanLvmthinResponse []*struct {
	Lv string `url:"lv",json:"lv"` // The LVM Thin Pool name (LVM logical volume).

}

type NfsscanNfsRequest

type NfsscanNfsRequest struct {
	Node   string `url:"node",json:"node"`     // The cluster node name.
	Server string `url:"server",json:"server"` // The server address (name or IP).

}

type NfsscanNfsResponse

type NfsscanNfsResponse []*struct {
	Options string `url:"options",json:"options"` // NFS export options.
	Path    string `url:"path",json:"path"`       // The exported path.

}

type PbsscanPbsRequest

type PbsscanPbsRequest struct {
	Node     string `url:"node",json:"node"`         // The cluster node name.
	Password string `url:"password",json:"password"` // User password or API token secret.
	Server   string `url:"server",json:"server"`     // The server address (name or IP).
	Username string `url:"username",json:"username"` // User-name or API token-ID.

	// The following parameters are optional
	Fingerprint *string `url:"fingerprint,omitempty",json:"fingerprint,omitempty"` // Certificate SHA 256 fingerprint.
	Port        *int    `url:"port,omitempty",json:"port,omitempty"`               // Optional port.
}

type PbsscanPbsResponse

type PbsscanPbsResponse []*struct {
	Store string `url:"store",json:"store"` // The datastore name.

	// The following parameters are optional
	Comment *string `url:"comment,omitempty",json:"comment,omitempty"` // Comment from server.
}

type ZfsscanZfsRequest

type ZfsscanZfsRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

}

type ZfsscanZfsResponse

type ZfsscanZfsResponse []*struct {
	Pool string `url:"pool",json:"pool"` // ZFS pool name.

}

Jump to

Keyboard shortcuts

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