tailor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) (*Client, error)

func (*Client) Lint

func (c *Client) Lint(resources *Resources) ([]*LintWarn, error)

func (*Client) Metrics

func (c *Client) Metrics(resources *Resources) ([]Metric, error)

func (*Client) Resources

func (c *Client) Resources(ctx context.Context) (*Resources, error)

type LintTargetType

type LintTargetType string
const (
	LintTargetTypePipeline  LintTargetType = "pipeline"
	LintTargetTypeTailorDB  LintTargetType = "tailordb"
	LintTargetTypeStateFlow LintTargetType = "stateflow"
)

type LintWarn

type LintWarn struct {
	Type    LintTargetType
	Name    string
	Message string
}

type Metric

type Metric struct {
	Name        string
	Description string
	Value       float64
}

type Pipeline

type Pipeline struct {
	NamespaceName string
	CommonSDL     string
	Resolvers     []*PipelineResolver
}

type PipelineResolver

type PipelineResolver struct {
	Name          string
	Description   string
	Authorization string
	SDL           string
	PreHook       string
	PreScript     string
	PostScript    string
	PostHook      string
	Steps         []*PipelineStep
}

type PipelineStep

type PipelineStep struct {
	Name           string
	Description    string
	PreValidation  string
	PreScript      string
	PreHook        string
	PostScript     string
	PostValidation string
	PostHook       string
	Operation      PipelineStepOperation
}

type PipelineStepOperation

type PipelineStepOperation struct {
	Type    tailorv1.PipelineResolver_OperationType
	Name    string
	Invoker *tailorv1.AuthInvoker
	Source  string
	Test    string
}

type Resources

type Resources struct {
	Applications []*Application
	Pipelines    []*Pipeline
	TailorDBs    []*TailorDB
	StateFlows   []*StateFlow
}

type StateFlow

type StateFlow struct {
	NamespaceName string
	AdminUsers    []*StateFlowAdminUser
}

type StateFlowAdminUser

type StateFlowAdminUser struct {
	UserID string
}

type TailorDB

type TailorDB struct {
	NamespaceName string
	Types         []*TailorDBType
}

type TailorDBField

type TailorDBField struct {
	Name        string
	Type        string
	Description string
	Fields      []*TailorDBField
	Required    bool
	Array       bool
	Index       bool
	Unique      bool
	ForeignKey  bool
	Vector      bool
	SourceID    *string
	Hooks       TailorDBFieldHooks
}

type TailorDBFieldHooks

type TailorDBFieldHooks struct {
	Create     string
	Update     string
	CreateExpr string
	UpdateExpr string
}

type TailorDBGQLPermission

type TailorDBGQLPermission struct {
}

type TailorDBPermission

type TailorDBPermission struct {
}

type TailorDBRecordPermission

type TailorDBRecordPermission struct {
}

type TailorDBType

type TailorDBType struct {
	Name          string
	Description   string
	Fields        []*TailorDBField
	Permission    *TailorDBPermission
	GQLPermission *TailorDBGQLPermission
	// Legacy Permission
	TypePermission   *TailorDBTypePermission
	RecordPermission *TailorDBRecordPermission
	// Draft
	Draft bool
}

type TailorDBTypePermission

type TailorDBTypePermission struct {
}

Jump to

Keyboard shortcuts

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