appresource

package
v0.0.0-...-04ccfb0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileMaxSize = 100 * 1024

Variables

View Source
var ResouceTooLarge = apierrors.RequestEntityTooLarge.WithReason("ResourceTooLarge")
View Source
var ResourceUpdateConflict = apierrors.Forbidden.WithReason("ResourceUpdateConflict")

Functions

This section is empty.

Types

type DenoClient

type DenoClient interface {
	Check(ctx context.Context, snippet string) error
}

type DescriptedPath

type DescriptedPath struct {
	Descriptor resource.Descriptor
	Path       string
}

type DomainService

type DomainService interface {
	ListDomains(appID string) ([]*apimodel.Domain, error)
}

type Manager

type Manager struct {
	Context            context.Context
	AppResourceManager *resource.Manager
	AppFS              resource.Fs
	AppFeatureConfig   *config.FeatureConfig
	AppHostSuffixes    *config.AppHostSuffixes
	DomainService      DomainService
	Tutorials          TutorialService
	DenoClient         DenoClient
	Clock              clock.Clock
}

func (*Manager) ApplyUpdates

func (m *Manager) ApplyUpdates(appID string, updates []Update) ([]*resource.ResourceFile, error)

func (*Manager) AssociateDescriptor

func (m *Manager) AssociateDescriptor(paths ...string) ([]DescriptedPath, error)

func (*Manager) List

func (m *Manager) List() ([]string, error)

func (*Manager) ReadAppFile

func (m *Manager) ReadAppFile(desc resource.Descriptor, view resource.AppFileView) (interface{}, error)

type TutorialService

type TutorialService interface {
	OnUpdateResource(ctx context.Context, appID string, resourcesInAllFss []resource.ResourceFile, resourceInTargetFs *resource.ResourceFile, data []byte) (err error)
}

type Update

type Update struct {
	Path     string
	Data     []byte
	Checksum string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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