models

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IModelInput

type IModelInput interface {
	ReadAll()
}

type ModelInputs

type ModelInputs struct {
	Cmd        *cobra.Command
	Title      string
	Type       string
	Properties map[string]generate.Schema
}

func NewModelInputs

func NewModelInputs(cmd *cobra.Command) *ModelInputs

func (*ModelInputs) GetProperties

func (m *ModelInputs) GetProperties() map[string]generate.Schema

func (*ModelInputs) GetTitle

func (m *ModelInputs) GetTitle() string

func (*ModelInputs) GetType

func (m *ModelInputs) GetType() string

func (*ModelInputs) ReadAll

func (m *ModelInputs) ReadAll()

The ReadAll method reads all the input required to define a schema.

func (*ModelInputs) ReadProperties

func (m *ModelInputs) ReadProperties()

func (*ModelInputs) ReadTitle

func (m *ModelInputs) ReadTitle()

func (*ModelInputs) ReadType

func (m *ModelInputs) ReadType()

func (*ModelInputs) SetProperties

func (m *ModelInputs) SetProperties(properties map[string]generate.Schema)

func (*ModelInputs) SetTitle

func (m *ModelInputs) SetTitle(title string)

func (*ModelInputs) SetType

func (m *ModelInputs) SetType(t string)

Jump to

Keyboard shortcuts

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