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
- func CreateFileOrDirectory(caller *cobra.Command) (*nameserver2.CreateFileResponse, *cmderror.CmdError)
- func NewCreateFileCommand() *fileCommand
- func NewFileCommand() *cobra.Command
- type CreateCommand
- func (cCmd *CreateCommand) AddFlags()
- func (cCmd *CreateCommand) Init(cmd *cobra.Command, args []string) error
- func (cCmd *CreateCommand) Print(cmd *cobra.Command, args []string) error
- func (cCmd *CreateCommand) ResultPlainOutput() error
- func (cCmd *CreateCommand) RunCommand(cmd *cobra.Command, args []string) error
- type CreateFileRpc
Constants ¶
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 ¶
Types ¶
type CreateCommand ¶
type CreateCommand struct { basecmd.FinalCurveCmd Rpc *CreateFileRpc Response *nameserver2.CreateFileResponse }
CreateCommand definition
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)