Documentation ¶
Index ¶
- Constants
- func Message(gtx layout.Context, messageType string, theme *chapartheme.Theme, ...) layout.Dimensions
- type AddressBar
- func (a *AddressBar) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (a *AddressBar) SetOnMethodChanged(onMethodChanged func(method string))
- func (a *AddressBar) SetOnSubmit(onSubmit func())
- func (a *AddressBar) SetOnURLChanged(onURLChanged func(url string))
- func (a *AddressBar) SetSelectedMethod(method string)
- func (a *AddressBar) SetURL(url string)
- type Auth
- type Breadcrumb
- func (b *Breadcrumb) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (b *Breadcrumb) SetContainerType(cType string)
- func (b *Breadcrumb) SetDataChanged(changed bool)
- func (b *Breadcrumb) SetOnSave(f func(id string))
- func (b *Breadcrumb) SetOnTitleChanged(f func(title string))
- type Field
- type Form
- type FormData
- func (f *FormData) AddFile(id string, file string)
- func (f *FormData) GetValues() []domain.FormField
- func (f *FormData) Layout(gtx layout.Context, title, hint string, theme *chapartheme.Theme) layout.Dimensions
- func (f *FormData) SetOnChanged(fn func(values []domain.FormField))
- func (f *FormData) SetOnSelectFile(fn func(id string))
- func (f *FormData) SetValues(values []domain.FormField)
- type FormDataField
- type FormDataFieldType
- type KeyValue
- type Option
- type PrePostRequest
- func (p *PrePostRequest) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (p *PrePostRequest) SetCode(code string)
- func (p *PrePostRequest) SetEnvForm(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (p *PrePostRequest) SetOnDropDownChanged(f func(selected string))
- func (p *PrePostRequest) SetOnPostRequestSetChanged(f func(statusCode int, item, from, fromKey string))
- func (p *PrePostRequest) SetOnScriptChanged(f func(script string))
- func (p *PrePostRequest) SetPostRequestSetValues(set domain.PostRequestSet)
- func (p *PrePostRequest) SetPreview(preview string)
- func (p *PrePostRequest) SetSelectedDropDown(selected string)
- type SetEnvForm
- type ValuesTable
Constants ¶
View Source
const ( MessageTypeInfo = "info" MessageTypeError = "error" MessageTypeWarning = "warning" )
View Source
const ( TypeScript = "script" TypeSetEnv = "set_env" TypeShellScript = "shell_script" TypeK8sTunnel = "kubectl_tunnel" TypeSSHTunnel = "ssh_tunnel" )
Variables ¶
This section is empty.
Functions ¶
func Message ¶
func Message(gtx layout.Context, messageType string, theme *chapartheme.Theme, message string) layout.Dimensions
Types ¶
type AddressBar ¶
type AddressBar struct {
// contains filtered or unexported fields
}
func NewAddressBar ¶
func NewAddressBar(theme *chapartheme.Theme, address, method string) *AddressBar
func (*AddressBar) Layout ¶
func (a *AddressBar) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*AddressBar) SetOnMethodChanged ¶
func (a *AddressBar) SetOnMethodChanged(onMethodChanged func(method string))
func (*AddressBar) SetOnSubmit ¶
func (a *AddressBar) SetOnSubmit(onSubmit func())
func (*AddressBar) SetOnURLChanged ¶
func (a *AddressBar) SetOnURLChanged(onURLChanged func(url string))
func (*AddressBar) SetSelectedMethod ¶
func (a *AddressBar) SetSelectedMethod(method string)
func (*AddressBar) SetURL ¶
func (a *AddressBar) SetURL(url string)
type Auth ¶
type Auth struct { DropDown *widgets.DropDown TokenForm *Form BasicForm *Form APIKeyForm *Form // contains filtered or unexported fields }
func (*Auth) Layout ¶
func (a *Auth) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Auth) SetOnChange ¶
type Breadcrumb ¶
type Breadcrumb struct { ID string ContainerType string CollectionName string Title *widgets.EditableLabel SaveButton widget.Clickable // contains filtered or unexported fields }
func NewBreadcrumb ¶
func NewBreadcrumb(id, name, cType, title string) *Breadcrumb
func (*Breadcrumb) Layout ¶
func (b *Breadcrumb) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Breadcrumb) SetContainerType ¶
func (b *Breadcrumb) SetContainerType(cType string)
func (*Breadcrumb) SetDataChanged ¶
func (b *Breadcrumb) SetDataChanged(changed bool)
func (*Breadcrumb) SetOnSave ¶
func (b *Breadcrumb) SetOnSave(f func(id string))
func (*Breadcrumb) SetOnTitleChanged ¶
func (b *Breadcrumb) SetOnTitleChanged(f func(title string))
type Form ¶
type Form struct { Fields []*Field // contains filtered or unexported fields }
func (*Form) Layout ¶
func (f *Form) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Form) SetOnChange ¶
type FormData ¶
type FormData struct { Fields []*FormDataField // contains filtered or unexported fields }
func NewFormData ¶
func NewFormData(theme *chapartheme.Theme, fields ...*FormDataField) *FormData
func (*FormData) Layout ¶
func (f *FormData) Layout(gtx layout.Context, title, hint string, theme *chapartheme.Theme) layout.Dimensions
func (*FormData) SetOnChanged ¶
func (*FormData) SetOnSelectFile ¶
type FormDataField ¶
type FormDataField struct { Type string Identifier string Key string Value string Files []string Enable bool // contains filtered or unexported fields }
func NewFormDataField ¶
func NewFormDataField(t FormDataFieldType, key, value string, files []string) *FormDataField
type FormDataFieldType ¶
type FormDataFieldType string
const ( FormDataFieldTypeText FormDataFieldType = "text" FormDataFieldTypeFile FormDataFieldType = "file" )
type PrePostRequest ¶
type PrePostRequest struct {
// contains filtered or unexported fields
}
func NewPrePostRequest ¶
func NewPrePostRequest(options []Option, theme *chapartheme.Theme) *PrePostRequest
func (*PrePostRequest) Layout ¶
func (p *PrePostRequest) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*PrePostRequest) SetCode ¶
func (p *PrePostRequest) SetCode(code string)
func (*PrePostRequest) SetEnvForm ¶
func (p *PrePostRequest) SetEnvForm(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*PrePostRequest) SetOnDropDownChanged ¶
func (p *PrePostRequest) SetOnDropDownChanged(f func(selected string))
func (*PrePostRequest) SetOnPostRequestSetChanged ¶
func (p *PrePostRequest) SetOnPostRequestSetChanged(f func(statusCode int, item, from, fromKey string))
func (*PrePostRequest) SetOnScriptChanged ¶
func (p *PrePostRequest) SetOnScriptChanged(f func(script string))
func (*PrePostRequest) SetPostRequestSetValues ¶
func (p *PrePostRequest) SetPostRequestSetValues(set domain.PostRequestSet)
func (*PrePostRequest) SetPreview ¶
func (p *PrePostRequest) SetPreview(preview string)
func (*PrePostRequest) SetSelectedDropDown ¶
func (p *PrePostRequest) SetSelectedDropDown(selected string)
type SetEnvForm ¶
type SetEnvForm struct {
// contains filtered or unexported fields
}
type ValuesTable ¶
type ValuesTable struct { Title string Values []KeyValue // contains filtered or unexported fields }
func NewValuesTable ¶
func NewValuesTable(title string, values []KeyValue) *ValuesTable
func (*ValuesTable) GetData ¶
func (v *ValuesTable) GetData() []domain.KeyValue
func (*ValuesTable) Layout ¶
func (v *ValuesTable) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*ValuesTable) SetData ¶
func (v *ValuesTable) SetData(values []domain.KeyValue)
Click to show internal directories.
Click to hide internal directories.