bldr_project

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyProjectID is returned if the project ID was empty.
	ErrEmptyProjectID = errors.New("project id cannot be empty")
	// ErrEmptyRemoteID is returned if the remote ID was empty.
	ErrEmptyRemoteID = errors.New("remote id cannot be empty")
	// ErrRemoteNotFound is returned if the remote ID was not found.
	ErrRemoteNotFound = errors.New("remote not found")
	// ErrManifestConfNotFound is returned if the manifest config was not found.
	ErrManifestConfNotFound = errors.New("manifest config not found")
)

Functions

func MergeProjectConfigs

func MergeProjectConfigs(dest, src *ProjectConfig) error

MergeProjectConfigs merges values from a config into another. Returns the result of Validate().

func UnmarshalProjectConfig

func UnmarshalProjectConfig(data []byte, conf *ProjectConfig) error

UnmarshalProjectConfig unmarshals a project config from json or yaml.

func ValidateProjectID

func ValidateProjectID(id string) error

ValidateProjectID validates a project identifier.

Types

type BuildConfig

type BuildConfig struct {

	// Manifests is the list of manifest IDs to build.
	Manifests []string `protobuf:"bytes,1,rep,name=manifests,proto3" json:"manifests,omitempty"`
	// PlatformIds is the list of platforms to target.
	// If targets is set, platform_ids are merged with the targets' platform lists.
	PlatformIds []string `protobuf:"bytes,2,rep,name=platform_ids,json=platformIds,proto3" json:"platformIds,omitempty"`
	// Targets is the list of deployment targets (e.g., "browser", "desktop").
	// Multiple targets can be specified to build for multiple environments.
	// Built-in targets: "browser", "desktop", "desktop/{os}/{arch}".
	Targets []string `protobuf:"bytes,3,rep,name=targets,proto3" json:"targets,omitempty"`
	// ManifestOverrides replaces the builder config of a named manifest when
	// built under this build target. Maps manifest_id to a ControllerConfig
	// whose config bytes replace the manifest's static builder config.
	//
	// The override's controller id is ignored; the manifest's declared builder
	// id always wins. This is REPLACE semantics: the static manifest config is
	// not merged with the override. Users compose shared fields in Starlark
	// helper functions rather than via runtime merging.
	//
	// Typical use: per-build-target embed_manifests selection for dist bundles
	// so a single dist manifest declaration can be reused across release
	// targets that ship different platform-specific payloads.
	ManifestOverrides map[string]*proto.ControllerConfig `` /* 199-byte string literal not displayed */
	// BuildPolicy configures build-scoped behavior shared by every Manifest
	// builder slot produced for this build target. CLI policy overrides are
	// merged on top using enabled.Enabled DEFAULT as "not set".
	BuildPolicy *build.BuildPolicy `protobuf:"bytes,5,opt,name=build_policy,json=buildPolicy,proto3" json:"buildPolicy,omitempty"`
	// contains filtered or unexported fields
}

BuildConfig configures a build target.

func (*BuildConfig) CloneMessageVT

func (m *BuildConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*BuildConfig) CloneVT

func (m *BuildConfig) CloneVT() *BuildConfig

func (*BuildConfig) EqualMessageVT

func (this *BuildConfig) EqualMessageVT(thatMsg any) bool

func (*BuildConfig) EqualVT

func (this *BuildConfig) EqualVT(that *BuildConfig) bool

func (*BuildConfig) GetBuildPolicy added in v0.51.7

func (x *BuildConfig) GetBuildPolicy() *build.BuildPolicy

func (*BuildConfig) GetManifestOverrides

func (x *BuildConfig) GetManifestOverrides() map[string]*proto.ControllerConfig

func (*BuildConfig) GetManifests

func (x *BuildConfig) GetManifests() []string

func (*BuildConfig) GetPlatformIds

func (x *BuildConfig) GetPlatformIds() []string

func (*BuildConfig) GetTargets

func (x *BuildConfig) GetTargets() []string

func (*BuildConfig) MarshalJSON

func (x *BuildConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BuildConfig to JSON.

func (*BuildConfig) MarshalProtoJSON

func (x *BuildConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the BuildConfig message to JSON.

func (*BuildConfig) MarshalProtoText

func (x *BuildConfig) MarshalProtoText() string

func (*BuildConfig) MarshalToSizedBufferVT

func (m *BuildConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BuildConfig) MarshalToVT

func (m *BuildConfig) MarshalToVT(dAtA []byte) (int, error)

func (*BuildConfig) MarshalVT

func (m *BuildConfig) MarshalVT() (dAtA []byte, err error)

func (*BuildConfig) ProtoMessage

func (*BuildConfig) ProtoMessage()

func (*BuildConfig) Reset

func (x *BuildConfig) Reset()

func (*BuildConfig) SizeVT

func (m *BuildConfig) SizeVT() (n int)

func (*BuildConfig) String

func (x *BuildConfig) String() string

func (*BuildConfig) UnmarshalJSON

func (x *BuildConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the BuildConfig from JSON.

func (*BuildConfig) UnmarshalProtoJSON

func (x *BuildConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the BuildConfig message from JSON.

func (*BuildConfig) UnmarshalVT

func (m *BuildConfig) UnmarshalVT(dAtA []byte) error

func (*BuildConfig) Validate added in v0.51.7

func (c *BuildConfig) Validate() error

Validate validates the build target configuration.

type BuildConfig_ManifestOverridesEntry

type BuildConfig_ManifestOverridesEntry struct {
	Key   string                  `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *proto.ControllerConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildConfig_ManifestOverridesEntry) GetKey

func (*BuildConfig_ManifestOverridesEntry) GetValue

func (*BuildConfig_ManifestOverridesEntry) MarshalJSON

func (x *BuildConfig_ManifestOverridesEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BuildConfig_ManifestOverridesEntry to JSON.

func (*BuildConfig_ManifestOverridesEntry) MarshalProtoJSON

func (x *BuildConfig_ManifestOverridesEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the BuildConfig_ManifestOverridesEntry message to JSON.

func (*BuildConfig_ManifestOverridesEntry) MarshalProtoText

func (x *BuildConfig_ManifestOverridesEntry) MarshalProtoText() string

func (*BuildConfig_ManifestOverridesEntry) ProtoMessage

func (*BuildConfig_ManifestOverridesEntry) ProtoMessage()

func (*BuildConfig_ManifestOverridesEntry) Reset

func (*BuildConfig_ManifestOverridesEntry) String

func (*BuildConfig_ManifestOverridesEntry) UnmarshalJSON

func (x *BuildConfig_ManifestOverridesEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the BuildConfig_ManifestOverridesEntry from JSON.

func (*BuildConfig_ManifestOverridesEntry) UnmarshalProtoJSON

func (x *BuildConfig_ManifestOverridesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the BuildConfig_ManifestOverridesEntry message from JSON.

type ManifestConfig

type ManifestConfig struct {

	// Builder is the configuration for the manifest builder.
	Builder *proto.ControllerConfig `protobuf:"bytes,1,opt,name=builder,proto3" json:"builder,omitempty"`
	// Rev is the minimum manifest rev to build.
	//
	// The controller will always scan for the latest manifest and add 1 to the
	// most recent rev when building to determine the resulting manifest rev.
	//
	// However, if there is no existing manifest in the store, or if you want to
	// override the minimum rev number, this field can be used.
	//
	// Useful for forcing a manifest to be rebuilt/reloaded even if nothing changed.
	Rev uint64 `protobuf:"varint,2,opt,name=rev,proto3" json:"rev,omitempty"`
	// Description is a short human-readable description of the manifest.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

ManifestConfig is a configuration for building a manifest.

func (*ManifestConfig) CloneMessageVT

func (m *ManifestConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ManifestConfig) CloneVT

func (m *ManifestConfig) CloneVT() *ManifestConfig

func (*ManifestConfig) EqualMessageVT

func (this *ManifestConfig) EqualMessageVT(thatMsg any) bool

func (*ManifestConfig) EqualVT

func (this *ManifestConfig) EqualVT(that *ManifestConfig) bool

func (*ManifestConfig) GetBuilder

func (x *ManifestConfig) GetBuilder() *proto.ControllerConfig

func (*ManifestConfig) GetDescription

func (x *ManifestConfig) GetDescription() string

func (*ManifestConfig) GetRev

func (x *ManifestConfig) GetRev() uint64

func (*ManifestConfig) MarshalJSON

func (x *ManifestConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ManifestConfig to JSON.

func (*ManifestConfig) MarshalProtoJSON

func (x *ManifestConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ManifestConfig message to JSON.

func (*ManifestConfig) MarshalProtoText

func (x *ManifestConfig) MarshalProtoText() string

func (*ManifestConfig) MarshalToSizedBufferVT

func (m *ManifestConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ManifestConfig) MarshalToVT

func (m *ManifestConfig) MarshalToVT(dAtA []byte) (int, error)

func (*ManifestConfig) MarshalVT

func (m *ManifestConfig) MarshalVT() (dAtA []byte, err error)

func (*ManifestConfig) ProtoMessage

func (*ManifestConfig) ProtoMessage()

func (*ManifestConfig) Reset

func (x *ManifestConfig) Reset()

func (*ManifestConfig) SizeVT

func (m *ManifestConfig) SizeVT() (n int)

func (*ManifestConfig) String

func (x *ManifestConfig) String() string

func (*ManifestConfig) UnmarshalJSON

func (x *ManifestConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ManifestConfig from JSON.

func (*ManifestConfig) UnmarshalProtoJSON

func (x *ManifestConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ManifestConfig message from JSON.

func (*ManifestConfig) UnmarshalVT

func (m *ManifestConfig) UnmarshalVT(dAtA []byte) error

func (*ManifestConfig) Validate

func (c *ManifestConfig) Validate() error

Validate validates the plugin config.

type ProjectConfig

type ProjectConfig struct {

	// Id is the project identifier.
	// Must be a valid-dns-label.
	// Used to construct the application storage and dist bundle filenames.
	// The project id can usually be overridden in the manifest compilers as well.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Start contains configuration for bldr start... commands.
	Start *StartConfig `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	// Manifests contains the mapping between manifest ID and manifest config.
	// The controller will be built when a manifest is requested via LoadManifest.
	// The ControllerConfig must be a manifest build controller Config.
	Manifests map[string]*ManifestConfig `` /* 159-byte string literal not displayed */
	// Build contains the list of build target configs.
	Build map[string]*BuildConfig `` /* 151-byte string literal not displayed */
	// Remotes contains definitions of destinations to build/publish to.
	// A default remote named "devtool" is automatically added.
	Remotes map[string]*RemoteConfig `` /* 155-byte string literal not displayed */
	// Publish contains configuration for build + publish manifests to destinations.
	// Contains configuration for bldr publish... commands.
	Publish map[string]*PublishConfig `` /* 155-byte string literal not displayed */
	// Extends references other bldr projects to inherit configuration from.
	// Each entry is a Go module path (e.g. "github.com/s4wave/spacewave").
	// The extended project's bldr.yaml is resolved via the vendor/ directory.
	// Extended configs are merged in order, then local config is merged on top.
	Extends []string `protobuf:"bytes,7,rep,name=extends,proto3" json:"extends,omitempty"`
	// contains filtered or unexported fields
}

ProjectConfig is a bldr project configuration.

func LoadExtendedProjectConfig

func LoadExtendedProjectConfig(sourcePath, modulePath string) (*ProjectConfig, []string, error)

LoadExtendedProjectConfig loads a project config from an extended module path. sourcePath is the root directory of the current project (containing vendor/). modulePath is the Go module path to resolve (e.g. "github.com/s4wave/spacewave"). Returns the loaded config and a list of files that were loaded (for watch tracking).

func (*ProjectConfig) CloneMessageVT

func (m *ProjectConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ProjectConfig) CloneVT

func (m *ProjectConfig) CloneVT() *ProjectConfig

func (*ProjectConfig) EqualMessageVT

func (this *ProjectConfig) EqualMessageVT(thatMsg any) bool

func (*ProjectConfig) EqualVT

func (this *ProjectConfig) EqualVT(that *ProjectConfig) bool

func (*ProjectConfig) GetBuild

func (x *ProjectConfig) GetBuild() map[string]*BuildConfig

func (*ProjectConfig) GetExtends

func (x *ProjectConfig) GetExtends() []string

func (*ProjectConfig) GetId

func (x *ProjectConfig) GetId() string

func (*ProjectConfig) GetManifests

func (x *ProjectConfig) GetManifests() map[string]*ManifestConfig

func (*ProjectConfig) GetPublish

func (x *ProjectConfig) GetPublish() map[string]*PublishConfig

func (*ProjectConfig) GetRemotes

func (x *ProjectConfig) GetRemotes() map[string]*RemoteConfig

func (*ProjectConfig) GetStart

func (x *ProjectConfig) GetStart() *StartConfig

func (*ProjectConfig) MarshalJSON

func (x *ProjectConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ProjectConfig to JSON.

func (*ProjectConfig) MarshalProtoJSON

func (x *ProjectConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ProjectConfig message to JSON.

func (*ProjectConfig) MarshalProtoText

func (x *ProjectConfig) MarshalProtoText() string

func (*ProjectConfig) MarshalToSizedBufferVT

func (m *ProjectConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ProjectConfig) MarshalToVT

func (m *ProjectConfig) MarshalToVT(dAtA []byte) (int, error)

func (*ProjectConfig) MarshalVT

func (m *ProjectConfig) MarshalVT() (dAtA []byte, err error)

func (*ProjectConfig) ProtoMessage

func (*ProjectConfig) ProtoMessage()

func (*ProjectConfig) Reset

func (x *ProjectConfig) Reset()

func (*ProjectConfig) SizeVT

func (m *ProjectConfig) SizeVT() (n int)

func (*ProjectConfig) String

func (x *ProjectConfig) String() string

func (*ProjectConfig) UnmarshalJSON

func (x *ProjectConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ProjectConfig from JSON.

func (*ProjectConfig) UnmarshalProtoJSON

func (x *ProjectConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ProjectConfig message from JSON.

func (*ProjectConfig) UnmarshalVT

func (m *ProjectConfig) UnmarshalVT(dAtA []byte) error

func (*ProjectConfig) Validate

func (c *ProjectConfig) Validate() error

Validate validates the project configuration.

type ProjectConfig_BuildEntry

type ProjectConfig_BuildEntry struct {
	Key   string       `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *BuildConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectConfig_BuildEntry) GetKey

func (x *ProjectConfig_BuildEntry) GetKey() string

func (*ProjectConfig_BuildEntry) GetValue

func (x *ProjectConfig_BuildEntry) GetValue() *BuildConfig

func (*ProjectConfig_BuildEntry) MarshalJSON

func (x *ProjectConfig_BuildEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ProjectConfig_BuildEntry to JSON.

func (*ProjectConfig_BuildEntry) MarshalProtoJSON

func (x *ProjectConfig_BuildEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ProjectConfig_BuildEntry message to JSON.

func (*ProjectConfig_BuildEntry) MarshalProtoText

func (x *ProjectConfig_BuildEntry) MarshalProtoText() string

func (*ProjectConfig_BuildEntry) ProtoMessage

func (*ProjectConfig_BuildEntry) ProtoMessage()

func (*ProjectConfig_BuildEntry) Reset

func (x *ProjectConfig_BuildEntry) Reset()

func (*ProjectConfig_BuildEntry) String

func (x *ProjectConfig_BuildEntry) String() string

func (*ProjectConfig_BuildEntry) UnmarshalJSON

func (x *ProjectConfig_BuildEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ProjectConfig_BuildEntry from JSON.

func (*ProjectConfig_BuildEntry) UnmarshalProtoJSON

func (x *ProjectConfig_BuildEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ProjectConfig_BuildEntry message from JSON.

type ProjectConfig_ManifestsEntry

type ProjectConfig_ManifestsEntry struct {
	Key   string          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *ManifestConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectConfig_ManifestsEntry) GetKey

func (*ProjectConfig_ManifestsEntry) GetValue

func (*ProjectConfig_ManifestsEntry) MarshalJSON

func (x *ProjectConfig_ManifestsEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ProjectConfig_ManifestsEntry to JSON.

func (*ProjectConfig_ManifestsEntry) MarshalProtoJSON

func (x *ProjectConfig_ManifestsEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ProjectConfig_ManifestsEntry message to JSON.

func (*ProjectConfig_ManifestsEntry) MarshalProtoText

func (x *ProjectConfig_ManifestsEntry) MarshalProtoText() string

func (*ProjectConfig_ManifestsEntry) ProtoMessage

func (*ProjectConfig_ManifestsEntry) ProtoMessage()

func (*ProjectConfig_ManifestsEntry) Reset

func (x *ProjectConfig_ManifestsEntry) Reset()

func (*ProjectConfig_ManifestsEntry) String

func (*ProjectConfig_ManifestsEntry) UnmarshalJSON

func (x *ProjectConfig_ManifestsEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ProjectConfig_ManifestsEntry from JSON.

func (*ProjectConfig_ManifestsEntry) UnmarshalProtoJSON

func (x *ProjectConfig_ManifestsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ProjectConfig_ManifestsEntry message from JSON.

type ProjectConfig_PublishEntry

type ProjectConfig_PublishEntry struct {
	Key   string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *PublishConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectConfig_PublishEntry) GetKey

func (x *ProjectConfig_PublishEntry) GetKey() string

func (*ProjectConfig_PublishEntry) GetValue

func (*ProjectConfig_PublishEntry) MarshalJSON

func (x *ProjectConfig_PublishEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ProjectConfig_PublishEntry to JSON.

func (*ProjectConfig_PublishEntry) MarshalProtoJSON

func (x *ProjectConfig_PublishEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ProjectConfig_PublishEntry message to JSON.

func (*ProjectConfig_PublishEntry) MarshalProtoText

func (x *ProjectConfig_PublishEntry) MarshalProtoText() string

func (*ProjectConfig_PublishEntry) ProtoMessage

func (*ProjectConfig_PublishEntry) ProtoMessage()

func (*ProjectConfig_PublishEntry) Reset

func (x *ProjectConfig_PublishEntry) Reset()

func (*ProjectConfig_PublishEntry) String

func (x *ProjectConfig_PublishEntry) String() string

func (*ProjectConfig_PublishEntry) UnmarshalJSON

func (x *ProjectConfig_PublishEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ProjectConfig_PublishEntry from JSON.

func (*ProjectConfig_PublishEntry) UnmarshalProtoJSON

func (x *ProjectConfig_PublishEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ProjectConfig_PublishEntry message from JSON.

type ProjectConfig_RemotesEntry

type ProjectConfig_RemotesEntry struct {
	Key   string        `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *RemoteConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectConfig_RemotesEntry) GetKey

func (x *ProjectConfig_RemotesEntry) GetKey() string

func (*ProjectConfig_RemotesEntry) GetValue

func (*ProjectConfig_RemotesEntry) MarshalJSON

func (x *ProjectConfig_RemotesEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ProjectConfig_RemotesEntry to JSON.

func (*ProjectConfig_RemotesEntry) MarshalProtoJSON

func (x *ProjectConfig_RemotesEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ProjectConfig_RemotesEntry message to JSON.

func (*ProjectConfig_RemotesEntry) MarshalProtoText

func (x *ProjectConfig_RemotesEntry) MarshalProtoText() string

func (*ProjectConfig_RemotesEntry) ProtoMessage

func (*ProjectConfig_RemotesEntry) ProtoMessage()

func (*ProjectConfig_RemotesEntry) Reset

func (x *ProjectConfig_RemotesEntry) Reset()

func (*ProjectConfig_RemotesEntry) String

func (x *ProjectConfig_RemotesEntry) String() string

func (*ProjectConfig_RemotesEntry) UnmarshalJSON

func (x *ProjectConfig_RemotesEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ProjectConfig_RemotesEntry from JSON.

func (*ProjectConfig_RemotesEntry) UnmarshalProtoJSON

func (x *ProjectConfig_RemotesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ProjectConfig_RemotesEntry message from JSON.

type PublishConfig

type PublishConfig struct {

	// SourceObjectKeys is the list of object keys to collect manifests from.
	// Gathers any manifest linked to with the <manifest> tag recursively.
	// If empty uses objectKey from source remote config.
	SourceObjectKeys []string `protobuf:"bytes,1,rep,name=source_object_keys,json=sourceObjectKeys,proto3" json:"sourceObjectKeys,omitempty"`
	// Manifests is the list of manifests to publish.
	// If empty publishes all manifests matched by object keys.
	Manifests []string `protobuf:"bytes,2,rep,name=manifests,proto3" json:"manifests,omitempty"`
	// AllManifestRevs copies all manifest revisions instead of just the latest.
	AllManifestRevs bool `protobuf:"varint,3,opt,name=all_manifest_revs,json=allManifestRevs,proto3" json:"allManifestRevs,omitempty"`
	// PlatformIds is the list of platforms to target.
	// If empty publishes all platform ids matched by object keys.
	PlatformIds []string `protobuf:"bytes,4,rep,name=platform_ids,json=platformIds,proto3" json:"platformIds,omitempty"`
	// Remotes is the list of remotes to publish to.
	Remotes []string `protobuf:"bytes,5,rep,name=remotes,proto3" json:"remotes,omitempty"`
	// DestObjectKey is the destination object key to deploy to.
	// Creates the manifests with this key as a prefix.
	// If unset, uses the object key from the destination remote config(s).
	DestObjectKey string `protobuf:"bytes,6,opt,name=dest_object_key,json=destObjectKey,proto3" json:"destObjectKey,omitempty"`
	// Storage overrides the storage for all manifests.
	// Overrides the settings from the destination world.
	// If empty, uses the destination world storage transform.
	Storage *PublishStorageConfig `protobuf:"bytes,7,opt,name=storage,proto3" json:"storage,omitempty"`
	// ManifestStorage maps manifest ID to publish storage configuration.
	// Overrides the settings in the storage property, per-manifest.
	// If empty, uses the destination world storage transform.
	ManifestStorage map[string]*PublishStorageConfig `` /* 193-byte string literal not displayed */
	// contains filtered or unexported fields
}

PublishConfig configures a publish target.

func (*PublishConfig) CloneMessageVT

func (m *PublishConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*PublishConfig) CloneVT

func (m *PublishConfig) CloneVT() *PublishConfig

func (*PublishConfig) DedupeManifests

func (c *PublishConfig) DedupeManifests() []string

DedupeManifests sorts and cleans up the list of manifest ids.

Returns a copy of the slice stored in the object.

func (*PublishConfig) DedupePlatformIDs

func (c *PublishConfig) DedupePlatformIDs() []string

DedupePlatformIDs sorts and cleans up the list of platform ids.

Returns a copy of the slice stored in the object.

func (*PublishConfig) DedupeSrcObjectKeys

func (c *PublishConfig) DedupeSrcObjectKeys() []string

DedupeSrcObjectKeys sorts and cleans up the list of source object keys.

Returns a copy of the slice stored in the object.

func (*PublishConfig) EqualMessageVT

func (this *PublishConfig) EqualMessageVT(thatMsg any) bool

func (*PublishConfig) EqualVT

func (this *PublishConfig) EqualVT(that *PublishConfig) bool

func (*PublishConfig) GetAllManifestRevs

func (x *PublishConfig) GetAllManifestRevs() bool

func (*PublishConfig) GetDestObjectKey

func (x *PublishConfig) GetDestObjectKey() string

func (*PublishConfig) GetManifestStorage

func (x *PublishConfig) GetManifestStorage() map[string]*PublishStorageConfig

func (*PublishConfig) GetManifests

func (x *PublishConfig) GetManifests() []string

func (*PublishConfig) GetPlatformIds

func (x *PublishConfig) GetPlatformIds() []string

func (*PublishConfig) GetRemotes

func (x *PublishConfig) GetRemotes() []string

func (*PublishConfig) GetSourceObjectKeys

func (x *PublishConfig) GetSourceObjectKeys() []string

func (*PublishConfig) GetStorage

func (x *PublishConfig) GetStorage() *PublishStorageConfig

func (*PublishConfig) MarshalJSON

func (x *PublishConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PublishConfig to JSON.

func (*PublishConfig) MarshalProtoJSON

func (x *PublishConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PublishConfig message to JSON.

func (*PublishConfig) MarshalProtoText

func (x *PublishConfig) MarshalProtoText() string

func (*PublishConfig) MarshalToSizedBufferVT

func (m *PublishConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PublishConfig) MarshalToVT

func (m *PublishConfig) MarshalToVT(dAtA []byte) (int, error)

func (*PublishConfig) MarshalVT

func (m *PublishConfig) MarshalVT() (dAtA []byte, err error)

func (*PublishConfig) ProtoMessage

func (*PublishConfig) ProtoMessage()

func (*PublishConfig) Reset

func (x *PublishConfig) Reset()

func (*PublishConfig) SizeVT

func (m *PublishConfig) SizeVT() (n int)

func (*PublishConfig) String

func (x *PublishConfig) String() string

func (*PublishConfig) UnmarshalJSON

func (x *PublishConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PublishConfig from JSON.

func (*PublishConfig) UnmarshalProtoJSON

func (x *PublishConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PublishConfig message from JSON.

func (*PublishConfig) UnmarshalVT

func (m *PublishConfig) UnmarshalVT(dAtA []byte) error

type PublishConfig_ManifestStorageEntry

type PublishConfig_ManifestStorageEntry struct {
	Key   string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *PublishStorageConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishConfig_ManifestStorageEntry) GetKey

func (*PublishConfig_ManifestStorageEntry) GetValue

func (*PublishConfig_ManifestStorageEntry) MarshalJSON

func (x *PublishConfig_ManifestStorageEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PublishConfig_ManifestStorageEntry to JSON.

func (*PublishConfig_ManifestStorageEntry) MarshalProtoJSON

func (x *PublishConfig_ManifestStorageEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PublishConfig_ManifestStorageEntry message to JSON.

func (*PublishConfig_ManifestStorageEntry) MarshalProtoText

func (x *PublishConfig_ManifestStorageEntry) MarshalProtoText() string

func (*PublishConfig_ManifestStorageEntry) ProtoMessage

func (*PublishConfig_ManifestStorageEntry) ProtoMessage()

func (*PublishConfig_ManifestStorageEntry) Reset

func (*PublishConfig_ManifestStorageEntry) String

func (*PublishConfig_ManifestStorageEntry) UnmarshalJSON

func (x *PublishConfig_ManifestStorageEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PublishConfig_ManifestStorageEntry from JSON.

func (*PublishConfig_ManifestStorageEntry) UnmarshalProtoJSON

func (x *PublishConfig_ManifestStorageEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PublishConfig_ManifestStorageEntry message from JSON.

type PublishStorageConfig

type PublishStorageConfig struct {

	// TransformConfFromRef is an ObjectRef to inherit the transform config from.
	//
	// If set, we will copy the transform config from this ref.
	// If transform_config is set, it will override this value.
	// NOTE: only the transform field will be used, not the transformRef field.
	//
	// If both transform_from_ref and transform are unset, uses the transform
	// config config from the parent world.
	//
	// Optional.
	TransformConfFromRef *bucket.ObjectRef `protobuf:"bytes,1,opt,name=transform_conf_from_ref,json=transformConfFromRef,proto3" json:"transformConfFromRef,omitempty"`
	// TransformConf is the transform configuration to use.
	//
	// If set, overrides the transform configuration in transform_from_ref.
	//
	// If both transform_from_ref and transform are unset, uses the transform
	// config from the parent world.
	TransformConf *transform.Config `protobuf:"bytes,2,opt,name=transform_conf,json=transformConf,proto3" json:"transformConf,omitempty"`
	// Timestamp sets the timestamp to use for unixfs timestamps.
	// If empty, uses the current timestamp
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

PublishStorageConfig configures adjusting the storage transform config for an asset.

func (*PublishStorageConfig) CloneMessageVT

func (*PublishStorageConfig) CloneVT

func (*PublishStorageConfig) EqualMessageVT

func (this *PublishStorageConfig) EqualMessageVT(thatMsg any) bool

func (*PublishStorageConfig) EqualVT

func (this *PublishStorageConfig) EqualVT(that *PublishStorageConfig) bool

func (*PublishStorageConfig) GetTimestamp

func (x *PublishStorageConfig) GetTimestamp() *timestamppb.Timestamp

func (*PublishStorageConfig) GetTransformConf

func (x *PublishStorageConfig) GetTransformConf() *transform.Config

func (*PublishStorageConfig) GetTransformConfFromRef

func (x *PublishStorageConfig) GetTransformConfFromRef() *bucket.ObjectRef

func (*PublishStorageConfig) MarshalJSON

func (x *PublishStorageConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PublishStorageConfig to JSON.

func (*PublishStorageConfig) MarshalProtoJSON

func (x *PublishStorageConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PublishStorageConfig message to JSON.

func (*PublishStorageConfig) MarshalProtoText

func (x *PublishStorageConfig) MarshalProtoText() string

func (*PublishStorageConfig) MarshalToSizedBufferVT

func (m *PublishStorageConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PublishStorageConfig) MarshalToVT

func (m *PublishStorageConfig) MarshalToVT(dAtA []byte) (int, error)

func (*PublishStorageConfig) MarshalVT

func (m *PublishStorageConfig) MarshalVT() (dAtA []byte, err error)

func (*PublishStorageConfig) Merge

Merge merges another config into this config.

func (*PublishStorageConfig) ProtoMessage

func (*PublishStorageConfig) ProtoMessage()

func (*PublishStorageConfig) Reset

func (x *PublishStorageConfig) Reset()

func (*PublishStorageConfig) SizeVT

func (m *PublishStorageConfig) SizeVT() (n int)

func (*PublishStorageConfig) String

func (x *PublishStorageConfig) String() string

func (*PublishStorageConfig) UnmarshalJSON

func (x *PublishStorageConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PublishStorageConfig from JSON.

func (*PublishStorageConfig) UnmarshalProtoJSON

func (x *PublishStorageConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PublishStorageConfig message from JSON.

func (*PublishStorageConfig) UnmarshalVT

func (m *PublishStorageConfig) UnmarshalVT(dAtA []byte) error

type RemoteConfig

type RemoteConfig struct {

	// HostConfigSet is a ConfigSet to apply to the devtool to access the world.
	// This ConfigSet is applied to the devtool bus.
	HostConfigSet map[string]*proto.ControllerConfig `` /* 188-byte string literal not displayed */
	// EngineId is the world engine id to deploy to.
	EngineId string `protobuf:"bytes,2,opt,name=engine_id,json=engineId,proto3" json:"engineId,omitempty"`
	// PeerId is the peer id to use for world transactions.
	// The peer controller must be running with the same id.
	PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peerId,omitempty"`
	// ObjectKey is the object key to deploy to.
	// Creates the manifests with this key as a prefix.
	ObjectKey string `protobuf:"bytes,4,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// LinkObjectKeys is a link of object keys to link to ObjectKey with <manifest>.
	LinkObjectKeys []string `protobuf:"bytes,5,rep,name=link_object_keys,json=linkObjectKeys,proto3" json:"linkObjectKeys,omitempty"`
	// contains filtered or unexported fields
}

RemoteConfig configures a location where manifests and source can be stored.

func (*RemoteConfig) CleanupLinkObjectKeys

func (c *RemoteConfig) CleanupLinkObjectKeys() (storeObjKey string, linkObjKeys []string)

CleanupLinkObjectKeys returns a compacted and sorted copy of the list of object keys to link including storeObjKey.

func (*RemoteConfig) CloneMessageVT

func (m *RemoteConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*RemoteConfig) CloneVT

func (m *RemoteConfig) CloneVT() *RemoteConfig

func (*RemoteConfig) EqualMessageVT

func (this *RemoteConfig) EqualMessageVT(thatMsg any) bool

func (*RemoteConfig) EqualVT

func (this *RemoteConfig) EqualVT(that *RemoteConfig) bool

func (*RemoteConfig) GetEngineId

func (x *RemoteConfig) GetEngineId() string

func (*RemoteConfig) GetHostConfigSet

func (x *RemoteConfig) GetHostConfigSet() map[string]*proto.ControllerConfig

func (*RemoteConfig) GetLinkObjectKeys

func (x *RemoteConfig) GetLinkObjectKeys() []string

func (*RemoteConfig) GetObjectKey

func (x *RemoteConfig) GetObjectKey() string

func (*RemoteConfig) GetPeerId

func (x *RemoteConfig) GetPeerId() string

func (*RemoteConfig) MarshalJSON

func (x *RemoteConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the RemoteConfig to JSON.

func (*RemoteConfig) MarshalProtoJSON

func (x *RemoteConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the RemoteConfig message to JSON.

func (*RemoteConfig) MarshalProtoText

func (x *RemoteConfig) MarshalProtoText() string

func (*RemoteConfig) MarshalToSizedBufferVT

func (m *RemoteConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RemoteConfig) MarshalToVT

func (m *RemoteConfig) MarshalToVT(dAtA []byte) (int, error)

func (*RemoteConfig) MarshalVT

func (m *RemoteConfig) MarshalVT() (dAtA []byte, err error)

func (*RemoteConfig) ParsePeerID

func (c *RemoteConfig) ParsePeerID() (peer.ID, error)

ParsePeerID parses the peer id field.

func (*RemoteConfig) ProtoMessage

func (*RemoteConfig) ProtoMessage()

func (*RemoteConfig) Reset

func (x *RemoteConfig) Reset()

func (*RemoteConfig) SizeVT

func (m *RemoteConfig) SizeVT() (n int)

func (*RemoteConfig) String

func (x *RemoteConfig) String() string

func (*RemoteConfig) UnmarshalJSON

func (x *RemoteConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the RemoteConfig from JSON.

func (*RemoteConfig) UnmarshalProtoJSON

func (x *RemoteConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the RemoteConfig message from JSON.

func (*RemoteConfig) UnmarshalVT

func (m *RemoteConfig) UnmarshalVT(dAtA []byte) error

func (*RemoteConfig) Validate

func (c *RemoteConfig) Validate() error

Validate validates the repository config.

type RemoteConfig_HostConfigSetEntry

type RemoteConfig_HostConfigSetEntry struct {
	Key   string                  `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *proto.ControllerConfig `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfig_HostConfigSetEntry) GetKey

func (*RemoteConfig_HostConfigSetEntry) GetValue

func (*RemoteConfig_HostConfigSetEntry) MarshalJSON

func (x *RemoteConfig_HostConfigSetEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the RemoteConfig_HostConfigSetEntry to JSON.

func (*RemoteConfig_HostConfigSetEntry) MarshalProtoJSON

func (x *RemoteConfig_HostConfigSetEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the RemoteConfig_HostConfigSetEntry message to JSON.

func (*RemoteConfig_HostConfigSetEntry) MarshalProtoText

func (x *RemoteConfig_HostConfigSetEntry) MarshalProtoText() string

func (*RemoteConfig_HostConfigSetEntry) ProtoMessage

func (*RemoteConfig_HostConfigSetEntry) ProtoMessage()

func (*RemoteConfig_HostConfigSetEntry) Reset

func (*RemoteConfig_HostConfigSetEntry) String

func (*RemoteConfig_HostConfigSetEntry) UnmarshalJSON

func (x *RemoteConfig_HostConfigSetEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the RemoteConfig_HostConfigSetEntry from JSON.

func (*RemoteConfig_HostConfigSetEntry) UnmarshalProtoJSON

func (x *RemoteConfig_HostConfigSetEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the RemoteConfig_HostConfigSetEntry message from JSON.

type StartConfig

type StartConfig struct {

	// Plugins is the list of plugin IDs to load on startup.
	Plugins []string `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
	// DisableBuild disables running the manifest builders to resolve FetchManifest.
	DisableBuild bool `protobuf:"varint,2,opt,name=disable_build,json=disableBuild,proto3" json:"disableBuild,omitempty"`
	// LoadWebStartup is a path to a .js, .ts, or .tsx file with a React component to load on startup.
	// Must be a relative path located within the project sources.
	// The file will be bundled with esbuild into the entrypoint bundle.
	// The component should contain a <WebView /> from @aptre/bldr-react.
	// The contents will be used for the children of BldrRoot.
	LoadWebStartup string `protobuf:"bytes,3,opt,name=load_web_startup,json=loadWebStartup,proto3" json:"loadWebStartup,omitempty"`
	// contains filtered or unexported fields
}

StartConfig configures starting the program.

func (*StartConfig) CloneMessageVT

func (m *StartConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*StartConfig) CloneVT

func (m *StartConfig) CloneVT() *StartConfig

func (*StartConfig) EqualMessageVT

func (this *StartConfig) EqualMessageVT(thatMsg any) bool

func (*StartConfig) EqualVT

func (this *StartConfig) EqualVT(that *StartConfig) bool

func (*StartConfig) GetDisableBuild

func (x *StartConfig) GetDisableBuild() bool

func (*StartConfig) GetLoadWebStartup

func (x *StartConfig) GetLoadWebStartup() string

func (*StartConfig) GetPlugins

func (x *StartConfig) GetPlugins() []string

func (*StartConfig) MarshalJSON

func (x *StartConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the StartConfig to JSON.

func (*StartConfig) MarshalProtoJSON

func (x *StartConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the StartConfig message to JSON.

func (*StartConfig) MarshalProtoText

func (x *StartConfig) MarshalProtoText() string

func (*StartConfig) MarshalToSizedBufferVT

func (m *StartConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StartConfig) MarshalToVT

func (m *StartConfig) MarshalToVT(dAtA []byte) (int, error)

func (*StartConfig) MarshalVT

func (m *StartConfig) MarshalVT() (dAtA []byte, err error)

func (*StartConfig) ParseWebStartupPath

func (c *StartConfig) ParseWebStartupPath() (string, error)

ParseWebStartupPath validates and cleans the web startup path. If unset, returns "", nil.

func (*StartConfig) ProtoMessage

func (*StartConfig) ProtoMessage()

func (*StartConfig) Reset

func (x *StartConfig) Reset()

func (*StartConfig) SizeVT

func (m *StartConfig) SizeVT() (n int)

func (*StartConfig) String

func (x *StartConfig) String() string

func (*StartConfig) UnmarshalJSON

func (x *StartConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the StartConfig from JSON.

func (*StartConfig) UnmarshalProtoJSON

func (x *StartConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the StartConfig message from JSON.

func (*StartConfig) UnmarshalVT

func (m *StartConfig) UnmarshalVT(dAtA []byte) error

func (*StartConfig) Validate

func (c *StartConfig) Validate() error

Validate validates the start configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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