data_model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDataModelNameIntoID

func ConvertDataModelNameIntoID(ctx context.Context, dataModelClient factory.DataModelClient, wsID, dataModelName string) (string, error)

func NewCmdDataModel

func NewCmdDataModel(opt *clioptions.GlobalOptions) *cobra.Command

func NewCmdDelete

func NewCmdDelete(opt *clioptions.GlobalOptions) *cobra.Command

func NewCmdImport

func NewCmdImport(opt *clioptions.GlobalOptions) *cobra.Command

func NewCmdList

func NewCmdList(opt *clioptions.GlobalOptions) *cobra.Command

Types

type DeleteOptions

type DeleteOptions struct {
	WorkspaceName string
	Name          string
	// contains filtered or unexported fields
}

DeleteOptions is an options to delete a data-model.

func NewDeleteOptions

func NewDeleteOptions(opt *clioptions.GlobalOptions) *DeleteOptions

NewDeleteOptions returns a reference to a DeleteOptions

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete() error

Complete completes all the required options.

func (*DeleteOptions) GetDefaultFormat

func (o *DeleteOptions) GetDefaultFormat() formatter.Format

func (*DeleteOptions) GetPromptArgs

func (o *DeleteOptions) GetPromptArgs() ([]string, error)

func (*DeleteOptions) GetPromptOptions

func (o *DeleteOptions) GetPromptOptions() error

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(args []string) error

Run run the delete data-model command

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate() error

Validate validate the delete options

type ImportOptions

type ImportOptions struct {
	WorkspaceName string
	InputFile     string
	// contains filtered or unexported fields
}

ImportOptions is an options to import a data-model.

func NewImportOptions

func NewImportOptions(opt *clioptions.GlobalOptions) *ImportOptions

NewImportOptions returns a reference to a ImportOptions

func (*ImportOptions) Complete

func (o *ImportOptions) Complete() error

Complete completes all the required options.

func (*ImportOptions) GetDefaultFormat

func (o *ImportOptions) GetDefaultFormat() formatter.Format

func (*ImportOptions) GetPromptArgs

func (o *ImportOptions) GetPromptArgs() ([]string, error)

func (*ImportOptions) GetPromptOptions

func (o *ImportOptions) GetPromptOptions() error

func (*ImportOptions) Run

func (o *ImportOptions) Run(args []string) error

Run run the import data-model command

func (*ImportOptions) Validate

func (o *ImportOptions) Validate() error

Validate validate the import options

type ListOptions

type ListOptions struct {
	WorkspaceName string
	Types         []string
	Name          string
	// contains filtered or unexported fields
}

ListOptions is an options to List data-models.

func NewListOptions

func NewListOptions(opt *clioptions.GlobalOptions) *ListOptions

NewListOptions returns a reference to a ListOptions

func (*ListOptions) Complete

func (o *ListOptions) Complete() error

Complete completes all the required options.

func (*ListOptions) GetDefaultFormat

func (o *ListOptions) GetDefaultFormat() formatter.Format

func (*ListOptions) GetPromptArgs

func (o *ListOptions) GetPromptArgs() ([]string, error)

func (*ListOptions) GetPromptOptions

func (o *ListOptions) GetPromptOptions() error

func (*ListOptions) Run

func (o *ListOptions) Run(args []string) error

Run run the List data-model command

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

Validate validate the List options

Jump to

Keyboard shortcuts

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