template

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(options *common.ItemOptions) (*sdk.TemplateItem, error)

func GetRaw

func GetRaw(options *common.ItemOptions) (*sdk.TemplateItem, *http.Response, error)

func List

func NewItemOptions

func NewItemOptions(id string) *common.ItemOptions

func Validate added in v0.16.0

func Validate(options *ValidateOptions) (bool, error)

func ValidateRaw added in v0.16.0

func ValidateRaw(options *ValidateOptions) (*sdk.TemplateCollection, *http.Response, error)

Types

type DefinitionData

type DefinitionData map[string]any

func DefinitionRaw

func DefinitionRaw(options *DefinitionOptions) (DefinitionData, *http.Response, error)

type DefinitionItem

type DefinitionItem struct {
	Data DefinitionData

	Bytes []byte
}

func Definition

func Definition(options *DefinitionOptions) (*DefinitionItem, error)

type DefinitionOptions

type DefinitionOptions struct {
	common.ActionOptions
}

func NewDefinitionOptions

func NewDefinitionOptions(id string) *DefinitionOptions

type ListOptions

type ListOptions struct {
	common.ListOptions

	Organization        string
	TemplatesRepository string

	Source string
	Search string
}

func NewListOptions

func NewListOptions() *ListOptions

func (*ListOptions) UpdateFlagSet

func (lo *ListOptions) UpdateFlagSet(flags *pflag.FlagSet)

type ValidateOptions added in v0.16.0

type ValidateOptions struct {
	common.Options

	sdk.TemplateValidateAction

	Organization string

	WithComponents bool
}

func NewValidateOptions added in v0.16.0

func NewValidateOptions() *ValidateOptions

func (*ValidateOptions) UpdateFlagSet added in v0.16.0

func (vo *ValidateOptions) UpdateFlagSet(flags *pflag.FlagSet)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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