v4

package
v1.15.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) 2023 Dell Inc, or its subsidiaries.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNfsExport

CreateNfsExport Create one export.

func DeleteNfsExport

func DeleteNfsExport(
	ctx context.Context, r DeleteV4NfsExportRequest,
	client api.Client,
) error

DeleteNfsExport Delete one export.

func GetNfsExport

func GetNfsExport(
	ctx context.Context,
	params GetV2NfsExportRequest,
	client api.Client,
) (*openapi.V2NfsExportsExtended, error)

GetNfsExport GET export.

func ListNfsExports

func ListNfsExports(
	ctx context.Context,
	params ListV4NfsExportsParams,
	client api.Client,
) (*openapi.V2NfsExports, error)

ListNfsExports GETs all exports.

func UpdateNfsExport

func UpdateNfsExport(
	ctx context.Context, r UpdateV4NfsExportRequest,
	client api.Client,
) error

UpdateNfsExport Update one export.

Types

type CreateV4NfsExportRequest

type CreateV4NfsExportRequest struct {
	V4NfsExport             *openapi.V2NfsExport
	Force                   *bool   `json:"force,omitempty"`
	IgnoreUnresolvableHosts *bool   `json:"ignore_unresolvable_hosts,omitempty"`
	Zone                    *string `json:"zone,omitempty"`
	IgnoreConflicts         *bool   `json:"ignore_conflicts,omitempty"`
	IgnoreBadPaths          *bool   `json:"ignore_bad_paths,omitempty"`
	IgnoreBadAuth           *bool   `json:"ignore_bad_auth,omitempty"`
}

type DeleteV4NfsExportRequest

type DeleteV4NfsExportRequest struct {
	V2NfsExportId string
	Zone          *string `json:"zone,omitempty"`
}

type GetV2NfsExportRequest

type GetV2NfsExportRequest struct {
	V2NfsExportId string
	Scope         *string `json:"scope,omitempty"`
	Zone          *string `json:"zone,omitempty"`
}

type ListV4NfsExportsParams

type ListV4NfsExportsParams struct {
	Sort   *string `json:"sort,omitempty"`
	Zone   *string `json:"zone,omitempty"`
	Resume *string `json:"resume,omitempty"`
	Scope  *string `json:"scope,omitempty"`
	Limit  *int32  `json:"limit,omitempty"`
	Offset *int32  `json:"offset,omitempty"`
	Path   *string `json:"path,omitempty"`
	Check  *bool   `json:"check,omitempty"`
	Dir    *string `json:"dir,omitempty"`
}

type UpdateV4NfsExportRequest

type UpdateV4NfsExportRequest struct {
	V2NfsExportId           string
	V2NfsExport             *openapi.V2NfsExportExtendedExtended
	Force                   *bool   `json:"force,omitempty"`
	IgnoreUnresolvableHosts *bool   `json:"ignore_unresolvable_hosts,omitempty"`
	Zone                    *string `json:"zone,omitempty"`
	IgnoreConflicts         *bool   `json:"ignore_conflicts,omitempty"`
	IgnoreBadPaths          *bool   `json:"ignore_bad_paths,omitempty"`
	IgnoreBadAuth           *bool   `json:"ignore_bad_auth,omitempty"`
}

Jump to

Keyboard shortcuts

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