rillv1beta

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 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)

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"`
}

Jump to

Keyboard shortcuts

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