tenant

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTenantTree added in v0.27.2

func RenderTenantTree(root *Node) ([]string, []string)

Renders a tree

Arguments:

node   Top-level node to render the tree from

Returns: The first slice is the list of tenants names. The second slice is how the corresponding line in the first slice should be rendered.

Types

type CreateOrUpdateOp

type CreateOrUpdateOp struct {
	Tenant            *tenant.Tenant
	ParentTenant      *tenant.Tenant
	CplatformRepoPath string
	BranchName        string
	CommitMessage     string
	PRName            string
	PRBody            string
	GitAuth           git.AuthMethod
	DryRun            bool
}

type CreateOrUpdateResult

type CreateOrUpdateResult struct {
	PRUrl string
}

func CreateOrUpdate

func CreateOrUpdate(
	op *CreateOrUpdateOp,
	githubClient *github.Client,
) (result CreateOrUpdateResult, err error)

type Node added in v0.27.2

type Node struct {
	Tenant   *coretnt.Tenant
	Children []*Node
}

func GetTenantTree added in v0.27.2

func GetTenantTree(tenants []coretnt.Tenant, root string) (*Node, error)

Builds trees of tenants.

Arguments:

 tenants   Tenants to build the tree(s) from
	root   Name of the tenant to start the tree from

Returns: A pointer to the root node of the tree

type Table added in v0.24.0

type Table struct {
	// contains filtered or unexported fields
}

func NewTable added in v0.24.0

func NewTable(streams userio.IOStreams) Table

func (Table) AppendRow added in v0.24.0

func (t Table) AppendRow(tnnt tenant.Tenant)

func (Table) Render added in v0.24.0

func (t Table) Render() string

Jump to

Keyboard shortcuts

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