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 ¶
- func CreateNfsExport(ctx context.Context, r CreateV4NfsExportRequest, client api.Client) (*openapi.Createv3EventEventResponse, error)
- func DeleteNfsExport(ctx context.Context, r DeleteV4NfsExportRequest, client api.Client) error
- func GetNfsExport(ctx context.Context, params GetV2NfsExportRequest, client api.Client) (*openapi.V2NfsExportsExtended, error)
- func ListNfsExports(ctx context.Context, params ListV4NfsExportsParams, client api.Client) (*openapi.V2NfsExports, error)
- func UpdateNfsExport(ctx context.Context, r UpdateV4NfsExportRequest, client api.Client) error
- type CreateV4NfsExportRequest
- type DeleteV4NfsExportRequest
- type GetV2NfsExportRequest
- type ListV4NfsExportsParams
- type UpdateV4NfsExportRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNfsExport ¶
func CreateNfsExport( ctx context.Context, r CreateV4NfsExportRequest, client api.Client, ) (*openapi.Createv3EventEventResponse, error)
CreateNfsExport Create one export.
func DeleteNfsExport ¶
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 ¶
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 GetV2NfsExportRequest ¶
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"` }