bazelconfig

package
v0.17.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateBazelParams added in v0.16.11

type ActivateBazelParams struct {
	Cache      CacheParams
	BES        BESParams
	RBE        RBEParams
	Timestamps bool
}

func DefaultActivateBazelParams added in v0.16.11

func DefaultActivateBazelParams() ActivateBazelParams

func (ActivateBazelParams) TemplateInventory added in v0.16.11

func (params ActivateBazelParams) TemplateInventory(
	logger log.Logger,
	envProvider func(string) string,
	commandFunc common.CommandFunc,
	isDebug bool,
) (TemplateInventory, error)

type BESParams added in v0.16.11

type BESParams struct {
	Enabled  bool
	Endpoint string
}

type BESTemplateInventory added in v0.16.11

type BESTemplateInventory struct {
	Enabled             bool
	Version             string
	EndpointURLWithPort string
}

type CacheParams added in v0.16.11

type CacheParams struct {
	Enabled     bool
	PushEnabled bool
	Endpoint    string
}

type CacheTemplateInventory added in v0.16.11

type CacheTemplateInventory struct {
	Enabled             bool
	EndpointURLWithPort string
	IsPushEnabled       bool
}

type CommonTemplateInventory added in v0.16.11

type CommonTemplateInventory struct {
	AuthToken    string
	WorkspaceID  string
	Debug        bool
	AppSlug      string
	CIProvider   string
	RepoURL      string
	WorkflowName string
	BuildID      string
	Timestamps   bool
	HostMetadata HostMetadataInventory
}

type HostMetadataInventory added in v0.16.11

type HostMetadataInventory struct {
	OS             string
	Locale         string
	DefaultCharset string
	CPUCores       int
	MemSize        int64
}

type RBEParams added in v0.16.11

type RBEParams struct {
	Enabled  bool
	Endpoint string
}

type RBETemplateInventory added in v0.16.11

type RBETemplateInventory struct {
	Enabled             bool
	EndpointURLWithPort string
}

type TemplateInventory added in v0.16.11

type TemplateInventory struct {
	Common CommonTemplateInventory
	Cache  CacheTemplateInventory
	BES    BESTemplateInventory
	RBE    RBETemplateInventory
}

func (TemplateInventory) GenerateBazelrc added in v0.16.11

func (inventory TemplateInventory) GenerateBazelrc(templateProxy utils.TemplateProxy) (string, error)

GenerateBazelrc creates the bazelrc content from the inventory data

func (TemplateInventory) WriteToBazelrc added in v0.16.11

func (inventory TemplateInventory) WriteToBazelrc(
	logger log.Logger,
	bazelrcPath string,
	osProxy utils.OsProxy,
	templateProxy utils.TemplateProxy,
) error

WriteToBazelrc writes the Bazel configuration to the specified bazelrc file. If the file exists, it only appends the generated content within the specified block. If it does not exist, it creates a new file with the content. Previously written content will be updated.

Jump to

Keyboard shortcuts

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