file

package
v0.0.0-...-46d4b59 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 NetEase Inc. * * 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.

* Project: curve * Created Date: 2023-04-14 * Author: chengyi01

Index

Constants

View Source
const (
	TYOE_DIR
)

Variables

This section is empty.

Functions

func CreateFileOrDirectory

func CreateFileOrDirectory(caller *cobra.Command) (*nameserver2.CreateFileResponse, *cmderror.CmdError)

func NewCreateFileCommand

func NewCreateFileCommand() *fileCommand

func NewFileCommand

func NewFileCommand() *cobra.Command

Types

type CreateCommand

type CreateCommand struct {
	basecmd.FinalCurveCmd
	Rpc      *CreateFileRpc
	Response *nameserver2.CreateFileResponse
}

CreateCommand definition

func NewCreateCommand

func NewCreateCommand() *CreateCommand

NewCreateCommand return the mid cli

func (*CreateCommand) AddFlags

func (cCmd *CreateCommand) AddFlags()

func (*CreateCommand) Init

func (cCmd *CreateCommand) Init(cmd *cobra.Command, args []string) error

func (*CreateCommand) Print

func (cCmd *CreateCommand) Print(cmd *cobra.Command, args []string) error

func (*CreateCommand) ResultPlainOutput

func (cCmd *CreateCommand) ResultPlainOutput() error

func (*CreateCommand) RunCommand

func (cCmd *CreateCommand) RunCommand(cmd *cobra.Command, args []string) error

type CreateFileRpc

type CreateFileRpc struct {
	Info    *basecmd.Rpc
	Request *nameserver2.CreateFileRequest
	// contains filtered or unexported fields
}

func (*CreateFileRpc) NewRpcClient

func (gRpc *CreateFileRpc) NewRpcClient(cc grpc.ClientConnInterface)

func (*CreateFileRpc) Stub_Func

func (gRpc *CreateFileRpc) Stub_Func(ctx context.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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