client

package
v1.45.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZfsClient

type ZfsClient struct {
	core.JDCloudClient
}

func NewZfsClient

func NewZfsClient(credential *core.Credential) *ZfsClient

func (*ZfsClient) CreateFileSystem

func (c *ZfsClient) CreateFileSystem(request *zfs.CreateFileSystemRequest) (*zfs.CreateFileSystemResponse, error)

- 创建一个新的文件系统,为这个文件系统分配一个Id

func (*ZfsClient) CreateMountTarget

func (c *ZfsClient) CreateMountTarget(request *zfs.CreateMountTargetRequest) (*zfs.CreateMountTargetResponse, error)
  • 为一个文件系统创建一个挂载目标。通过这个挂载目标,你可以挂载将一个文件系统挂载到主机实例上。

- 创建一个挂载目标,为这个挂载目标分配一个Id

func (*ZfsClient) DeleteFileSystem

func (c *ZfsClient) DeleteFileSystem(request *zfs.DeleteFileSystemRequest) (*zfs.DeleteFileSystemResponse, error)

- 删除一个文件系统,一旦删除,该文件系统将不存在,也无法访问已删除的文件系统里的任何内容。 [MFA enabled]

func (*ZfsClient) DeleteMountTarget

func (c *ZfsClient) DeleteMountTarget(request *zfs.DeleteMountTargetRequest) (*zfs.DeleteMountTargetResponse, error)

- 删除挂载目标的同时会删除相关的网络接口。

func (*ZfsClient) DescribeFileSystem

func (c *ZfsClient) DescribeFileSystem(request *zfs.DescribeFileSystemRequest) (*zfs.DescribeFileSystemResponse, error)

查询文件系统详情

func (*ZfsClient) DescribeFileSystems

func (c *ZfsClient) DescribeFileSystems(request *zfs.DescribeFileSystemsRequest) (*zfs.DescribeFileSystemsResponse, error)
  • 查询文件系统列表。

- filters多个过滤条件之间是逻辑与(AND),每个条件内部的多个取值是逻辑或(OR)

func (*ZfsClient) DescribeMountTarget

func (c *ZfsClient) DescribeMountTarget(request *zfs.DescribeMountTargetRequest) (*zfs.DescribeMountTargetResponse, error)

查询挂载目标详情

func (*ZfsClient) DescribeMountTargets

func (c *ZfsClient) DescribeMountTargets(request *zfs.DescribeMountTargetsRequest) (*zfs.DescribeMountTargetsResponse, error)

- 查询挂载目标列表。

func (*ZfsClient) DisableLogger added in v1.13.0

func (c *ZfsClient) DisableLogger()

func (*ZfsClient) ModifyFileSystemAttribute

func (c *ZfsClient) ModifyFileSystemAttribute(request *zfs.ModifyFileSystemAttributeRequest) (*zfs.ModifyFileSystemAttributeResponse, error)

修改文件系统属性(name 和 description 必须要指定一个)

func (*ZfsClient) SetConfig

func (c *ZfsClient) SetConfig(config *core.Config)

func (*ZfsClient) SetLogger

func (c *ZfsClient) SetLogger(logger core.Logger)

Jump to

Keyboard shortcuts

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