Documentation
¶
Index ¶
Constants ¶
View Source
const ( BearerToken = `Bearer ` ConfigFlag = `config` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizerCmd ¶
type AuthorizerCmd struct {
authorizer.AuthorizerCmd
}
func (*AuthorizerCmd) AfterApply ¶ added in v0.8.0
type AuthorizerOptions ¶ added in v0.8.0
type AuthorizerOptions struct {
AddressOverride string `name:"authorizer" env:"ADDRESS" help:"authorizer override" default:""`
ConnectionOptions
}
func (*AuthorizerOptions) Address ¶ added in v0.8.0
func (ao *AuthorizerOptions) Address() string
type CLI ¶
type CLI struct {
Login user.LoginCmd `cmd:"" help:"login to aserto.com"`
Logout user.LogoutCmd `cmd:"" help:"logout from aserto.com"`
Start topaz.StartCmd `cmd:"" help:"start a topaz instance"`
Stop topaz.StopCmd `cmd:"" help:"stop a topaz instance"`
Restart topaz.RestartCmd `cmd:"" help:"restart topaz instance"`
Status topaz.StatusCmd `cmd:"" help:"status of topaz instance"`
RunCmd topaz.RunCmd `cmd:"" name:"run" help:"run topaz instance in interactive mode"`
Console topaz.ConsoleCmd `cmd:"" help:"launch web console"`
Config ConfigCmd `cmd:"" help:"configuration commands"`
Directory DirectoryCmd `cmd:"" aliases:"ds" help:"directory commands"`
Authorizer AuthorizerCmd `cmd:"" aliases:"az" help:"authorizer commands"`
DecisionLogs DecisionLogsCmd `cmd:"" aliases:"dl" help:"decision logs commands"`
ControlPlane ControlPlaneCmd `cmd:"" aliases:"cp" help:"control plane commands"`
Tenant TenantCmd `cmd:"" aliases:"tn" help:"tenant commands"`
User UserCmd `cmd:"" help:"user commands"`
Install topaz.InstallCmd `cmd:"" help:"install topaz"`
Uninstall topaz.UninstallCmd `cmd:"" help:"uninstall topaz, removes all locally installed artifacts"`
Update topaz.UpdateCmd `cmd:"" help:"update topaz container version"`
Version VersionCmd `cmd:"" help:"version information"`
// ConfigFileMapper implements the `type:"conf"` tag.
Cfg string `name:"config" short:"c" type:"conf" help:"name or path of configuration file"`
Verbosity int `short:"v" type:"counter" help:"Use to increase output verbosity."`
TenantOverride string `name:"tenant" env:"ASERTO_TENANT_ID" help:"tenant id override"`
}
func (*CLI) ConfigOverrider ¶ added in v0.8.6
type ConfigCmd ¶
type ConfigCmd struct {
Use config.UseConfigCmd `cmd:"" help:"use a topaz configuration"`
New dev.ConfigureCmd `cmd:"" help:"create new configuration"`
List config.ListConfigCmd `cmd:"" help:"list configurations"`
Rename topazConfig.RenameConfigCmd `cmd:"" help:"rename configuration"`
Delete topazConfig.DeleteConfigCmd `cmd:"" help:"delete configuration"`
Info topazConfig.InfoConfigCmd `cmd:"" help:"display configuration information"`
}
type ConnectionOptions ¶ added in v0.8.0
type ConnectionOptions struct {
APIKey string `env:"KEY" help:"service api key" placeholder:"key"`
NoAuth bool `help:"do not provide any credentials"`
Insecure bool `help:"skip TLS verification" default:"false"`
}
func (*ConnectionOptions) Address ¶ added in v0.8.0
func (so *ConnectionOptions) Address() string
func (*ConnectionOptions) IsAnonymous ¶ added in v0.8.0
func (so *ConnectionOptions) IsAnonymous() bool
func (*ConnectionOptions) IsInsecure ¶ added in v0.8.0
func (so *ConnectionOptions) IsInsecure() bool
func (*ConnectionOptions) Key ¶ added in v0.8.0
func (so *ConnectionOptions) Key() string
type ControlPlaneCmd ¶ added in v0.8.10
type ControlPlaneCmd struct {
ListConnections controlplane.ListConnectionsCmd `cmd:"" help:"list edge authorizer connections" group:"control-plane"`
ClientCert controlplane.ClientCertCmd `cmd:"" help:"get client certificates for an edge authorizer connection" group:"control-plane"`
ListInstanceRegistrations controlplane.ListInstanceRegistrationsCmd `cmd:"" help:"list instance registrations" group:"control-plane"`
Discovery controlplane.DiscoveryCmd `cmd:"" help:"run discovery on a registered instance" group:"control-plane"`
EdgeDirSync controlplane.EdgeDirSyncCmd `cmd:"" help:"sync the directory on an edge authorizer" group:"control-plane"`
}
func (*ControlPlaneCmd) BeforeApply ¶ added in v0.20.6
func (cmd *ControlPlaneCmd) BeforeApply(context *kong.Context) error
type DecisionLogsCmd ¶ added in v0.8.0
type DecisionLogsCmd struct {
List decision_logs.ListCmd `cmd:"" help:"list available decision log files" group:"decision-logs"`
Get decision_logs.GetCmd `cmd:"" help:"download one or more decision log files" group:"decision-logs"`
Stream decision_logs.StreamCmd `cmd:"" help:"stream decision log events to stdout" group:"decision-logs"`
SvcOpts ConnectionOptions `embed:"" envprefix:"ASERTO_DECISION_LOGS_"`
}
func (*DecisionLogsCmd) AfterApply ¶ added in v0.8.0
func (cmd *DecisionLogsCmd) AfterApply(so ServiceOptions) error
func (*DecisionLogsCmd) BeforeApply ¶ added in v0.20.6
func (cmd *DecisionLogsCmd) BeforeApply(context *kong.Context) error
type DirectoryCmd ¶
type DirectoryCmd struct {
directory.DirectoryCmd
}
func (*DirectoryCmd) AfterApply ¶ added in v0.8.0
type ServiceOptions ¶ added in v0.8.4
type TenantCmd ¶
type TenantCmd struct {
GetAccount tenant.GetAccountCmd `cmd:"" group:"tenant" help:"get account info"`
ListConnections tenant.ListConnectionsCmd `cmd:"" group:"tenant" help:"list connections"`
GetConnection tenant.GetConnectionCmd `cmd:"" group:"tenant" help:"get connection instance info"`
UpdateConnection tenant.UpdateConnectionCmd `cmd:"" group:"tenant" help:"update connection configuration fields"`
VerifyConnection tenant.VerifyConnectionCmd `cmd:"" group:"tenant" help:"verify connection settings"`
SyncConnection tenant.SyncConnectionCmd `cmd:"" group:"tenant" help:"trigger sync of IDP connection"`
ListPolicyReferences tenant.ListPolicyReferencesCmd `cmd:"" group:"tenant" help:"list policy references"`
ListProviderKinds tenant.ListProviderKindsCmd `cmd:"" group:"tenant" help:"list provider kinds"`
ListProviders tenant.ListProvidersCmd `cmd:"" group:"tenant" help:"list providers"`
GetProvider tenant.GetProviderCmd `cmd:"" group:"tenant" help:"get provider info"`
}
type UserCmd ¶
type UserCmd struct {
Info user.InfoCmd `cmd:"" group:"user" help:"get user profile information"`
Get user.GetCmd `cmd:"" group:"user" help:"get property"`
}
func (*UserCmd) BeforeApply ¶
func (cmd *UserCmd) BeforeApply(so ServiceOptions) error
type VersionCmd ¶
type VersionCmd struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.