rillv1beta

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "rill-beta"

Variables

This section is empty.

Functions

func HasRillProject added in v0.24.0

func HasRillProject(dir string) bool

Types

type Codec

type Codec struct {
	Repo       drivers.RepoStore
	InstanceID string
}

func New

func New(repo drivers.RepoStore, instanceID string) *Codec

func (*Codec) DeleteSource

func (c *Codec) DeleteSource(ctx context.Context, name string) (string, error)

func (*Codec) InitEmpty

func (c *Codec) InitEmpty(ctx context.Context, title string) error

func (*Codec) IsInit

func (c *Codec) IsInit(ctx context.Context) bool

func (*Codec) ProjectConfig added in v0.21.1

func (c *Codec) ProjectConfig(ctx context.Context) (*ProjectConfig, error)

func (*Codec) PutSource

func (c *Codec) PutSource(ctx context.Context, repo drivers.RepoStore, instanceID string, source *runtimev1.Source, force bool) (string, error)

type Connector added in v0.24.0

type Connector struct {
	Name            string
	Type            string
	Sources         []*connectors.Source
	Spec            connectors.Spec
	AnonymousAccess bool
}

func ExtractConnectors added in v0.24.0

func ExtractConnectors(ctx context.Context, projectPath string) ([]*Connector, error)

type ProjectConfig added in v0.21.1

type ProjectConfig struct {
	// Project variables
	Variables   map[string]string `yaml:"env,omitempty"`
	Title       string            `yaml:"title,omitempty"`
	Description string            `yaml:"description,omitempty"`
}

func ParseProjectConfig added in v0.26.0

func ParseProjectConfig(content []byte) (*ProjectConfig, error)

type Source

type Source struct {
	Type   string
	URI    string `yaml:"uri,omitempty"`
	Path   string `yaml:"path,omitempty"`
	Region string `yaml:"region,omitempty"`
}

type Variables added in v0.24.0

type Variables struct {
	ProjectVariables []connectors.VariableSchema
	Connectors       []*Connector
}

TODO :: return this to build support for all kind of variables

Jump to

Keyboard shortcuts

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