cmds

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Common
	Migrate MigrateCmd `cmd:"" help:"migrate directory v2 metadata to an annotated v3 manifest"`
	Version VersionCmd `cmd:"" help:"version information"`
}

type Common

type Common struct {
	Host     string `name:"host" env:"ASERTO_DIR_SVC" default:"localhost:9292"`
	APIKey   string `name:"api-key" env:"ASERTO_DIR_KEY" default:""`
	TenantID string `name:"tenant-id" env:"ASERTO_TENANT_ID" default:""`
	Insecure bool   `name:"insecure" env:"ASERTO_SKIP_TLS_VERIFICATION" default:"false"`
}

type Info

type Info struct {
	Version string
	Date    string
	Commit  string
}

Info - version info.

func GetInfo

func GetInfo() Info

GetInfo - get version stamp information.

func (Info) String

func (vi Info) String() string

String() -- return version info string.

type MigrateCmd

type MigrateCmd struct {
	Filename      string `flag:"" name:"file" default:"manifest.yaml"`
	Description   string `flag:"" name:"desc" default:"automatic migration of v2 model to annotated v3 manifest"`
	InclHeader    bool   `flag:"" name:"hdr" default:"false" help:"incl header"`
	InclTimestamp bool   `flag:"" name:"ts" default:"false" help:"incl timestamp"`
}

func (*MigrateCmd) Run

func (cmd *MigrateCmd) Run(c *Common) error

type VersionCmd

type VersionCmd struct {
}

func (*VersionCmd) Run

func (a *VersionCmd) Run(c *Common) error

Jump to

Keyboard shortcuts

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