v1beta1

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GVR = schema.GroupVersionResource{
	Group:    "storage.alibabacloud.com",
	Version:  "v1beta1",
	Resource: "containernetworkfilesystems",
}

GVR is cnfs version

Functions

This section is empty.

Types

type CNFSGetter added in v1.4.0

type CNFSGetter interface {
	GetCNFS(ctx context.Context, name string) (*ContainerNetworkFileSystem, error)
}

func NewCNFSGetter added in v1.4.0

func NewCNFSGetter(client dynamic.Interface) CNFSGetter

type ContainerNetworkFileSystem

type ContainerNetworkFileSystem struct {
	metaV1.TypeMeta   `json:",inline"`
	metaV1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ContainerNetworkFileSystemSpec   `json:"spec,omitempty"`
	Status ContainerNetworkFileSystemStatus `json:"status,omitempty"`
}

ContainerNetworkFileSystem define cnfs crd

func GetCnfsObject added in v1.1.5

func GetCnfsObject(client dynamic.Interface, name string) (*ContainerNetworkFileSystem, error)

GetCnfsObject get cnfs's object

type ContainerNetworkFileSystemCondition

type ContainerNetworkFileSystemCondition struct {
	LastProbeTime string `json:"lastProbeTime,omitempty"`
	Status        string `json:"status,omitempty"`
	Reason        string `json:"reason,omitempty"`
}

ContainerNetworkFileSystemCondition define cnfs condition field

type ContainerNetworkFileSystemList

type ContainerNetworkFileSystemList struct {
	metaV1.TypeMeta `json:",inline"`
	metaV1.ListMeta `json:"metadata,omitempty"`

	Items []ContainerNetworkFileSystem `json:"items"`
}

ContainerNetworkFileSystemList define cnfs list

type ContainerNetworkFileSystemSpec

type ContainerNetworkFileSystemSpec struct {
	StorageType   string     `json:"type,omitempty"`
	ReclaimPolicy string     `json:"reclaimPolicy,omitempty"`
	Description   string     `json:"description,omitempty"`
	Parameters    Parameters `json:"parameters,omitempty"`
}

ContainerNetworkFileSystemSpec define cnfs spec field

type ContainerNetworkFileSystemStatus

type ContainerNetworkFileSystemStatus struct {
	Status       string                                `json:"status,omitempty"`
	FsAttributes FsAttributes                          `json:"fsAttributes,omitempty"`
	Conditions   []ContainerNetworkFileSystemCondition `json:"conditions,omitempty"`
}

ContainerNetworkFileSystemStatus define cnfs status field

type EndPoint

type EndPoint struct {
	Internal string `json:"internal,omitempty"`
	Extranet string `json:"extranet,omitempty"`
}

EndPoint define cnfs endpoint field when cnfs type is oss

type FsAttributes

type FsAttributes struct {
	RegionID                     string    `json:"regionId,omitempty"`
	ZoneID                       string    `json:"zoneId,omitempty"`
	StorageType                  string    `json:"storageType,omitempty"`
	ProtocolType                 string    `json:"protocolType,omitempty"`
	EncryptType                  string    `json:"encryptType,omitempty"`
	AccessGroupName              string    `json:"accessGroupName,omitempty"`
	VpcID                        string    `json:"vpcId,omitempty"`
	VSwitchID                    string    `json:"vSwitchId,omitempty"`
	FilesystemID                 string    `json:"filesystemId,omitempty"`
	FilesystemType               string    `json:"filesystemType,omitempty"`
	Server                       string    `json:"server,omitempty"`
	BucketName                   string    `json:"bucketName,omitempty"`
	EndPoint                     *EndPoint `json:"endPoint,omitempty"`
	ACLType                      string    `json:"aclType,omitempty"`
	EnableTrashCan               string    `json:"enableTrashCan,omitempty"`
	TrashCanReservedDays         string    `json:"trashCanReservedDays,omitempty"`
	UseElasticAccelerationClient string    `json:"useElasticAccelerationClient,omitempty"`
	UseClient                    string    `json:"useClient,omitempty"`
	ProtocolServer               string    `json:"protocolServer,omitempty"`
}

FsAttributes define cnfs status FsAttributes field

type Parameters

type Parameters struct {
	Secret                       *Secret `json:"secret,omitempty"`
	StorageType                  string  `json:"storageType,omitempty"`
	ProtocolType                 string  `json:"protocolType,omitempty"`
	EncryptType                  string  `json:"encryptType,omitempty"`
	VSwitchID                    string  `json:"vSwitchId,omitempty"`
	Server                       string  `json:"server,omitempty"`
	FileSystemType               string  `json:"filesystemType,omitempty"`
	BucketName                   string  `json:"bucketName,omitempty"`
	ACLType                      string  `json:"aclType,omitempty"`
	EnableTrashCan               string  `json:"enableTrashCan,omitempty"`
	TrashCanReservedDays         string  `json:"trashCanReservedDays,omitempty"`
	UseElasticAccelerationClient string  `json:"useElasticAccelerationClient,omitempty"`
	UseClient                    string  `json:"useClient,omitempty"`
	ProtocolServer               string  `json:"protocolServer,omitempty"`
}

Parameters define cnfs parameters field

type Secret

type Secret struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,,omitempty"`
}

Secret define secret field

Jump to

Keyboard shortcuts

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