ownership

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetOwnershipDataCmd = &subcommands.Command{
	UsageLine: "ownership-data ...",
	ShortDesc: "Get ownership data by filters",
	LongDesc: `Get ownership data by filters.

Example:

shivas get ownership-data {name1}
shivas get ownership-data {name1} {name2}
shivas get ownership-data

Gets the ownership data and prints the output in the user-specified format.`,
	CommandRun: func() subcommands.CommandRun {
		c := &getOwnershipData{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		c.commonFlags.Register(&c.Flags)
		c.outputFlags.Register(&c.Flags)

		c.Flags.IntVar(&c.pageSize, "n", 0, cmdhelp.ListPageSizeDesc)
		c.Flags.BoolVar(&c.keysOnly, "keys", false, cmdhelp.KeysOnlyText)
		c.Flags.StringVar(&c.commitsh, "commitsh", "", "Commitsh to get ownership configs at a particular commit. Only one commitsh can be specified.")

		return c
	},
}

GetOwnershipDataCmd gets the ownership by the given name.

Functions

func ListOwnerships

func ListOwnerships(ctx context.Context, ic ufsAPI.FleetClient, pageSize int32, pageToken, filter string, keysOnly, full bool) ([]proto.Message, string, error)

ListHosts calls the list MachineLSE in UFS to get a list of MachineLSEs

Types

This section is empty.

Jump to

Keyboard shortcuts

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