Documentation ¶
Index ¶
- Constants
- Variables
- func AbbrevHomePaths(fp string) string
- func AccountJwtURL(oc *jwt.OperatorClaims, ac *jwt.AccountClaims) (string, error)
- func AccountJwtURLFromString(asu string, accountSubject string) (string, error)
- func AddLimits(table *tablewriter.Table, lim jwt.Limits)
- func AddListValues(table *tablewriter.Table, label string, values []string)
- func AddPermissions(table *tablewriter.Table, u jwt.Permissions)
- func AddStandardClaimInfo(table *tablewriter.Table, claims jwt.Claims)
- func CreateAddAccountCmd() *cobra.Command
- func CreateAddOperatorCmd() *cobra.Command
- func CreateAddUserCmd() *cobra.Command
- func CreateClearRevokeUserCmd() *cobra.Command
- func CreateDeleteUserCmd() *cobra.Command
- func CreateDescribeUserCmd() *cobra.Command
- func CreateEditOperatorCmd() *cobra.Command
- func CreateEditUserCmd() *cobra.Command
- func CreateListUsersCmd() *cobra.Command
- func CreatePushCmd() *cobra.Command
- func CreateRevokeListUsersCmd() *cobra.Command
- func CreateRevokeUserCmd() *cobra.Command
- func Decrypt(pk string, data []byte) ([]byte, error)
- func DiffAccountLimits(a *jwt.AccountClaims, b *jwt.AccountClaims) store.Status
- func Encrypt(pk string, data []byte) ([]byte, error)
- func EncryptKV(pk string, data []byte) ([]byte, error)
- func EnterQuietMode()
- func Execute()
- func ExecuteWithWriter(out io.Writer) error
- func Expand(s string) (string, error)
- func GenerateConfig(s *store.Store, account string, user string, userKey nkeys.KeyPair) ([]byte, error)
- func GetField(data []byte, jp string) ([]byte, error)
- func GetLastRandomName() string
- func GetOperatorName(name string, asu string) string
- func GetOperatorSigners(ctx ActionCtx) ([]string, error)
- func GetOutput(fp string) (*os.File, error)
- func GetRandomName(retry int) string
- func GetRootCmd() *cobra.Command
- func GetStore() (*store.Store, error)
- func GetStoreForOperator(operator string) (*store.Store, error)
- func GetToolName() string
- func HoistRootFlags(cmd *cobra.Command) *cobra.Command
- func HumanizedDate(d int64) string
- func IsAccountAvailable(status int) bool
- func IsAccountPending(status int) bool
- func IsNatsUrl(url string) bool
- func IsStdOut(fp string) bool
- func IsURL(v string) bool
- func IsValidDir(dir string) error
- func JWTUpgradeBannerJWT(ver int) error
- func LatencyMetricsSubjectValidator(s string) error
- func LoadFromFileOrURL(v string) ([]byte, error)
- func LoadFromURL(url string) ([]byte, error)
- func MaxArgs(max int) cobra.PositionalArgs
- func MaybeMakeDir(dir string) error
- func NKeyValidator(kind nkeys.PrefixByte) cli.Validator
- func NameFlagOrArgument(name string, ctx ActionCtx) string
- func OperatorJwtURL(oc *jwt.OperatorClaims) (string, error)
- func OperatorJwtURLFromString(asu string) (string, error)
- func OperatorNameValidator(v string) error
- func ParseExpiry(s string) (int64, error)
- func ParseNumber(s string) (int64, error)
- func PushAccount(u string, accountjwt []byte) (int, []byte, error)
- func QuietMode() bool
- func Read(fp string) ([]byte, error)
- func ReadJson(fp string, v interface{}) error
- func RenderDate(d int64) string
- func ResolveKeyFlag() (nkeys.KeyPair, error)
- func ResolvePath(defaultPath string, varName string) string
- func RunAction(cmd *cobra.Command, args []string, action interface{}) error
- func RunMaybeStorelessAction(cmd *cobra.Command, args []string, action interface{}) error
- func RunStoreLessAction(cmd *cobra.Command, args []string, action interface{}) error
- func SamplingValidator(s string) error
- func SeedNKeyValidatorMatching(pukeys []string, kinds ...nkeys.PrefixByte) cli.Validator
- func SetEnvOptions()
- func SetQuietMode(tf bool)
- func SetToolName(name string)
- func StoreAccountAndUpdateStatus(ctx ActionCtx, token string, status *store.Report)
- func UnixToDate(d int64) string
- func ValidSigner(kp nkeys.KeyPair, signers []string) (bool, error)
- func Write(fp string, data []byte) error
- func WriteJson(fp string, v interface{}) error
- type AccountContextParams
- type AccountDescriber
- type AccountExport
- type AccountExportChoice
- type AccountExportChoices
- type AccountImport
- type AccountImportChoice
- type AccountImportChoices
- type AccountUserContextParams
- type Action
- type ActionCtx
- type ActionFn
- type ActionRunFn
- type ActivationDescriber
- type Actx
- func (c *Actx) AllSet(flagNames ...string) bool
- func (c *Actx) AnySet(flagNames ...string) bool
- func (c *Actx) Args() []string
- func (c *Actx) CountSet(flagNames ...string) int
- func (c *Actx) CurrentCmd() *cobra.Command
- func (c *Actx) NothingToDo(flagNames ...string) bool
- func (c *Actx) StoreCtx() *store.Context
- type AddAccountParams
- func (p *AddAccountParams) Load(ctx ActionCtx) error
- func (p *AddAccountParams) PostInteractive(ctx ActionCtx) error
- func (p *AddAccountParams) PreInteractive(ctx ActionCtx) error
- func (p *AddAccountParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *AddAccountParams) SetDefaults(ctx ActionCtx) error
- func (p *AddAccountParams) Validate(ctx ActionCtx) error
- type AddExportParams
- func (p *AddExportParams) Load(ctx ActionCtx) error
- func (p *AddExportParams) PostInteractive(_ ActionCtx) error
- func (p *AddExportParams) PreInteractive(ctx ActionCtx) error
- func (p *AddExportParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *AddExportParams) SetDefaults(ctx ActionCtx) error
- func (p *AddExportParams) Validate(ctx ActionCtx) error
- type AddImportParams
- func (p *AddImportParams) Load(ctx ActionCtx) error
- func (p *AddImportParams) PostInteractive(ctx ActionCtx) error
- func (p *AddImportParams) PreInteractive(ctx ActionCtx) error
- func (p *AddImportParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *AddImportParams) SetDefaults(ctx ActionCtx) error
- func (p *AddImportParams) Validate(ctx ActionCtx) error
- type AddMappingParams
- func (p *AddMappingParams) Load(ctx ActionCtx) error
- func (p *AddMappingParams) PostInteractive(_ ActionCtx) error
- func (p *AddMappingParams) PreInteractive(ctx ActionCtx) error
- func (p *AddMappingParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *AddMappingParams) SetDefaults(ctx ActionCtx) error
- func (p *AddMappingParams) Validate(ctx ActionCtx) error
- type AddOperatorParams
- func (p *AddOperatorParams) Load(ctx ActionCtx) error
- func (p *AddOperatorParams) PostInteractive(ctx ActionCtx) error
- func (p *AddOperatorParams) PreInteractive(ctx ActionCtx) error
- func (p *AddOperatorParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *AddOperatorParams) SetDefaults(ctx ActionCtx) error
- func (p *AddOperatorParams) Validate(ctx ActionCtx) error
- type AddUserParams
- func (p *AddUserParams) Load(_ ActionCtx) error
- func (p *AddUserParams) PostInteractive(_ ActionCtx) error
- func (p *AddUserParams) PreInteractive(ctx ActionCtx) error
- func (p *AddUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *AddUserParams) SetDefaults(ctx ActionCtx) error
- func (p *AddUserParams) Validate(ctx ActionCtx) error
- type Arg
- type ByAccountName
- type ClearRevokeUserParams
- func (p *ClearRevokeUserParams) Load(ctx ActionCtx) error
- func (p *ClearRevokeUserParams) PostInteractive(ctx ActionCtx) error
- func (p *ClearRevokeUserParams) PreInteractive(ctx ActionCtx) error
- func (p *ClearRevokeUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ClearRevokeUserParams) SetDefaults(ctx ActionCtx) error
- func (p *ClearRevokeUserParams) Validate(ctx ActionCtx) error
- type ContextConfig
- func (c *ContextConfig) ListAccounts() ([]string, error)
- func (c *ContextConfig) ListOperators() []string
- func (c *ContextConfig) LoadStore(operatorName string) (*store.Store, error)
- func (c *ContextConfig) SetAccount(account string) error
- func (c *ContextConfig) SetAccountTemp(account string) error
- func (c *ContextConfig) SetDefaults()
- func (c *ContextConfig) SetOperator(operator string) error
- func (c *ContextConfig) Update(root string, operator string, account string) error
- type DeleteAccountParams
- func (p *DeleteAccountParams) Load(ctx ActionCtx) error
- func (p *DeleteAccountParams) PostInteractive(ctx ActionCtx) error
- func (p *DeleteAccountParams) PreInteractive(ctx ActionCtx) error
- func (p *DeleteAccountParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *DeleteAccountParams) SetDefaults(ctx ActionCtx) error
- func (p *DeleteAccountParams) Validate(ctx ActionCtx) error
- type DeleteExportParams
- func (p *DeleteExportParams) Load(ctx ActionCtx) error
- func (p *DeleteExportParams) PostInteractive(ctx ActionCtx) error
- func (p *DeleteExportParams) PreInteractive(ctx ActionCtx) error
- func (p *DeleteExportParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *DeleteExportParams) SetDefaults(ctx ActionCtx) error
- func (p *DeleteExportParams) Validate(ctx ActionCtx) error
- type DeleteImportParams
- func (p *DeleteImportParams) Load(ctx ActionCtx) error
- func (p *DeleteImportParams) PostInteractive(ctx ActionCtx) error
- func (p *DeleteImportParams) PreInteractive(ctx ActionCtx) error
- func (p *DeleteImportParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *DeleteImportParams) SetDefaults(ctx ActionCtx) error
- func (p *DeleteImportParams) Validate(ctx ActionCtx) error
- type DeleteMappingParams
- func (p *DeleteMappingParams) Load(ctx ActionCtx) error
- func (p *DeleteMappingParams) PostInteractive(ctx ActionCtx) error
- func (p *DeleteMappingParams) PreInteractive(ctx ActionCtx) error
- func (p *DeleteMappingParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *DeleteMappingParams) SetDefaults(ctx ActionCtx) error
- func (p *DeleteMappingParams) Validate(ctx ActionCtx) error
- type DeleteUserParams
- func (p *DeleteUserParams) Load(ctx ActionCtx) error
- func (p *DeleteUserParams) PostInteractive(ctx ActionCtx) error
- func (p *DeleteUserParams) PreInteractive(ctx ActionCtx) error
- func (p *DeleteUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *DeleteUserParams) SetDefaults(ctx ActionCtx) error
- func (p *DeleteUserParams) Validate(ctx ActionCtx) error
- type DescribeAccountParams
- func (p *DescribeAccountParams) Load(ctx ActionCtx) error
- func (p *DescribeAccountParams) PostInteractive(_ ActionCtx) error
- func (p *DescribeAccountParams) PreInteractive(ctx ActionCtx) error
- func (p *DescribeAccountParams) Run(_ ActionCtx) (store.Status, error)
- func (p *DescribeAccountParams) SetDefaults(ctx ActionCtx) error
- func (p *DescribeAccountParams) Validate(_ ActionCtx) error
- type DescribeFile
- func (p *DescribeFile) Load(ctx ActionCtx) error
- func (p *DescribeFile) PostInteractive(ctx ActionCtx) error
- func (p *DescribeFile) PreInteractive(ctx ActionCtx) error
- func (p *DescribeFile) Run(ctx ActionCtx) (store.Status, error)
- func (p *DescribeFile) SetDefaults(ctx ActionCtx) error
- func (p *DescribeFile) Validate(ctx ActionCtx) error
- type DescribeOperatorParams
- func (p *DescribeOperatorParams) Load(ctx ActionCtx) error
- func (p *DescribeOperatorParams) PostInteractive(_ ActionCtx) error
- func (p *DescribeOperatorParams) PreInteractive(_ ActionCtx) error
- func (p *DescribeOperatorParams) Run(_ ActionCtx) (store.Status, error)
- func (p *DescribeOperatorParams) SetDefaults(ctx ActionCtx) error
- func (p *DescribeOperatorParams) Validate(_ ActionCtx) error
- type DescribeUserParams
- func (p *DescribeUserParams) Load(ctx ActionCtx) error
- func (p *DescribeUserParams) PostInteractive(_ ActionCtx) error
- func (p *DescribeUserParams) PreInteractive(ctx ActionCtx) error
- func (p *DescribeUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *DescribeUserParams) SetDefaults(ctx ActionCtx) error
- func (p *DescribeUserParams) Validate(_ ActionCtx) error
- type Describer
- type Details
- type EditAccountParams
- func (p *EditAccountParams) Load(ctx ActionCtx) error
- func (p *EditAccountParams) PostInteractive(ctx ActionCtx) error
- func (p *EditAccountParams) PreInteractive(ctx ActionCtx) error
- func (p *EditAccountParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *EditAccountParams) SetDefaults(ctx ActionCtx) error
- func (p *EditAccountParams) Validate(ctx ActionCtx) error
- type EditExportParams
- func (p *EditExportParams) Load(ctx ActionCtx) error
- func (p *EditExportParams) PostInteractive(ctx ActionCtx) error
- func (p *EditExportParams) PreInteractive(ctx ActionCtx) error
- func (p *EditExportParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *EditExportParams) SetDefaults(ctx ActionCtx) error
- func (p *EditExportParams) Validate(ctx ActionCtx) error
- type EditOperatorParams
- func (p *EditOperatorParams) Load(ctx ActionCtx) error
- func (p *EditOperatorParams) PostInteractive(ctx ActionCtx) error
- func (p *EditOperatorParams) PreInteractive(ctx ActionCtx) error
- func (p *EditOperatorParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *EditOperatorParams) SetDefaults(ctx ActionCtx) error
- func (p *EditOperatorParams) Validate(ctx ActionCtx) error
- type EditScopedSkParams
- func (p *EditScopedSkParams) Load(ctx ActionCtx) error
- func (p *EditScopedSkParams) PostInteractive(ctx ActionCtx) error
- func (p *EditScopedSkParams) PreInteractive(ctx ActionCtx) error
- func (p *EditScopedSkParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *EditScopedSkParams) SetDefaults(ctx ActionCtx) error
- func (p *EditScopedSkParams) Validate(ctx ActionCtx) error
- type EditUserParams
- func (p *EditUserParams) Load(ctx ActionCtx) error
- func (p *EditUserParams) PostInteractive(ctx ActionCtx) error
- func (p *EditUserParams) PreInteractive(ctx ActionCtx) error
- func (p *EditUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *EditUserParams) SetDefaults(ctx ActionCtx) error
- func (p *EditUserParams) Validate(ctx ActionCtx) error
- type EntryInfo
- type ExportJob
- type ExportKeysParams
- func (p *ExportKeysParams) Load(ctx ActionCtx) error
- func (p *ExportKeysParams) PostInteractive(ctx ActionCtx) error
- func (p *ExportKeysParams) PreInteractive(ctx ActionCtx) error
- func (p *ExportKeysParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ExportKeysParams) SetDefaults(ctx ActionCtx) error
- func (p *ExportKeysParams) Validate(ctx ActionCtx) error
- type ExportsDescriber
- type FixCmd
- func (p *FixCmd) Load(ctx ActionCtx) error
- func (p *FixCmd) LoadAccounts(ctx ActionCtx) (*store.Report, error)
- func (p *FixCmd) LoadCreds(ctx ActionCtx) (*store.Report, error)
- func (p *FixCmd) LoadNKey(fp string) error
- func (p *FixCmd) LoadNKeys(ctx ActionCtx) (*store.Report, error)
- func (p *FixCmd) LoadOperators(ctx ActionCtx) (*store.Report, error)
- func (p *FixCmd) LoadUsers(ctx ActionCtx) (*store.Report, error)
- func (p *FixCmd) PostInteractive(ctx ActionCtx) error
- func (p *FixCmd) PreInteractive(ctx ActionCtx) error
- func (p *FixCmd) ReadAccountJwt(fp string) (*jwt.AccountClaims, string, error)
- func (p *FixCmd) ReadGenericJwt(fp string) (*jwt.GenericClaims, error)
- func (p *FixCmd) ReadOperatorJwt(fp string) (*jwt.OperatorClaims, string, error)
- func (p *FixCmd) ReadUserJwt(fp string) (*jwt.UserClaims, string, error)
- func (p *FixCmd) Regenerate(rr *store.Report) error
- func (p *FixCmd) Run(ctx ActionCtx) (store.Status, error)
- func (p *FixCmd) SetDefaults(ctx ActionCtx) error
- func (p *FixCmd) Validate(ctx ActionCtx) error
- type GenerateActivationParams
- func (p *GenerateActivationParams) Load(ctx ActionCtx) error
- func (p *GenerateActivationParams) PostInteractive(ctx ActionCtx) error
- func (p *GenerateActivationParams) PreInteractive(ctx ActionCtx) error
- func (p *GenerateActivationParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *GenerateActivationParams) SetDefaults(ctx ActionCtx) error
- func (p *GenerateActivationParams) Token() string
- func (p *GenerateActivationParams) Validate(ctx ActionCtx) error
- type GenerateCredsParams
- func (p *GenerateCredsParams) Load(ctx ActionCtx) error
- func (p *GenerateCredsParams) PostInteractive(ctx ActionCtx) error
- func (p *GenerateCredsParams) PreInteractive(ctx ActionCtx) error
- func (p *GenerateCredsParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *GenerateCredsParams) SetDefaults(ctx ActionCtx) error
- func (p *GenerateCredsParams) Validate(ctx ActionCtx) error
- type GenerateNKeysParam
- func (p *GenerateNKeysParam) Load(ctx ActionCtx) error
- func (p *GenerateNKeysParam) PostInteractive(ctx ActionCtx) error
- func (p *GenerateNKeysParam) PreInteractive(ctx ActionCtx) error
- func (p *GenerateNKeysParam) Run(ctx ActionCtx) (store.Status, error)
- func (p *GenerateNKeysParam) SetDefaults(ctx ActionCtx) error
- func (p *GenerateNKeysParam) Validate(ctx ActionCtx) error
- type GenerateServerConfigParams
- func (p *GenerateServerConfigParams) Load(ctx ActionCtx) error
- func (p *GenerateServerConfigParams) PostInteractive(ctx ActionCtx) error
- func (p *GenerateServerConfigParams) PreInteractive(ctx ActionCtx) error
- func (p *GenerateServerConfigParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *GenerateServerConfigParams) SetDefaults(ctx ActionCtx) error
- func (p *GenerateServerConfigParams) Validate(ctx ActionCtx) error
- type GenericClaimsParams
- type ImportAccount
- func (p *ImportAccount) Load(ctx ActionCtx) (err error)
- func (p *ImportAccount) PostInteractive(ctx ActionCtx) (err error)
- func (p *ImportAccount) PreInteractive(ctx ActionCtx) (err error)
- func (p *ImportAccount) Run(ctx ActionCtx) (store.Status, error)
- func (p *ImportAccount) SetDefaults(ctx ActionCtx) error
- func (p *ImportAccount) Validate(ctx ActionCtx) error
- type ImportDescriber
- type ImportKeysParams
- func (p *ImportKeysParams) Load(ctx ActionCtx) error
- func (p *ImportKeysParams) PostInteractive(ctx ActionCtx) error
- func (p *ImportKeysParams) PreInteractive(ctx ActionCtx) error
- func (p *ImportKeysParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ImportKeysParams) SetDefaults(ctx ActionCtx) error
- func (p *ImportKeysParams) Validate(ctx ActionCtx) error
- type ImportNKeyJob
- type ImportUser
- func (p *ImportUser) Load(ctx ActionCtx) (err error)
- func (p *ImportUser) PostInteractive(ctx ActionCtx) (err error)
- func (p *ImportUser) PreInteractive(ctx ActionCtx) (err error)
- func (p *ImportUser) Run(ctx ActionCtx) (store.Status, error)
- func (p *ImportUser) SetDefaults(ctx ActionCtx) error
- func (p *ImportUser) Validate(ctx ActionCtx) error
- type ImportsDescriber
- type InitCmdParams
- func (p *InitCmdParams) Load(ctx ActionCtx) error
- func (p *InitCmdParams) PostInteractive(ctx ActionCtx) error
- func (p *InitCmdParams) PreInteractive(ctx ActionCtx) error
- func (p *InitCmdParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *InitCmdParams) SetDefaults(ctx ActionCtx) error
- func (p *InitCmdParams) Validate(ctx ActionCtx) error
- type InterceptorFn
- type KP
- type Key
- type KeyCollectorParams
- type KeyList
- type Keys
- type KnownOperator
- type KnownOperators
- type ListEditorParam
- type ListKeysParams
- func (p *ListKeysParams) Load(ctx ActionCtx) error
- func (p *ListKeysParams) PostInteractive(ctx ActionCtx) error
- func (p *ListKeysParams) PreInteractive(ctx ActionCtx) error
- func (p *ListKeysParams) Report(ks Keys) string
- func (p *ListKeysParams) ReportSeeds(ks Keys) string
- func (p *ListKeysParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ListKeysParams) SetDefaults(ctx ActionCtx) error
- func (p *ListKeysParams) Validate(ctx ActionCtx) error
- type MappingsDescriber
- type MemResolverConfigBuilder
- func (cb *MemResolverConfigBuilder) Add(rawClaim []byte) error
- func (cb *MemResolverConfigBuilder) Generate() ([]byte, error)
- func (cb *MemResolverConfigBuilder) GenerateConfig() ([]byte, error)
- func (cb *MemResolverConfigBuilder) GenerateDir() ([]byte, error)
- func (cb *MemResolverConfigBuilder) SetOutputDir(fp string) error
- func (cb *MemResolverConfigBuilder) SetSystemAccount(id string) error
- type MigrateCmdParams
- func (p *MigrateCmdParams) Load(ctx ActionCtx) error
- func (p *MigrateCmdParams) PostInteractive(ctx ActionCtx) error
- func (p *MigrateCmdParams) PreInteractive(ctx ActionCtx) error
- func (p *MigrateCmdParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *MigrateCmdParams) SetDefaults(ctx ActionCtx) error
- func (p *MigrateCmdParams) Validate(ctx ActionCtx) error
- type MigrateJob
- type NKeyConfigBuilder
- type NatsResolverConfigBuilder
- type NscURL
- type NumberParams
- type OT
- type OperatorDescriber
- type PermissionsParams
- type Profile
- type ProfileCmdParams
- func (p *ProfileCmdParams) Load(_ ActionCtx) error
- func (p *ProfileCmdParams) PostInteractive(_ ActionCtx) error
- func (p *ProfileCmdParams) PreInteractive(_ ActionCtx) error
- func (p *ProfileCmdParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ProfileCmdParams) SetDefaults(_ ActionCtx) error
- func (p *ProfileCmdParams) Validate(ctx ActionCtx) error
- type PubKeyChoice
- type PubKeyParams
- type PubParams
- func (p *PubParams) Load(ctx ActionCtx) error
- func (p *PubParams) PostInteractive(ctx ActionCtx) error
- func (p *PubParams) PreInteractive(ctx ActionCtx) error
- func (p *PubParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *PubParams) SetDefaults(ctx ActionCtx) error
- func (p *PubParams) Validate(ctx ActionCtx) error
- type PullJob
- type PullJobs
- type PullParams
- func (p *PullParams) Load(ctx ActionCtx) error
- func (p *PullParams) PostInteractive(ctx ActionCtx) error
- func (p *PullParams) PreInteractive(ctx ActionCtx) error
- func (p *PullParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *PullParams) SetDefaults(ctx ActionCtx) error
- func (p *PullParams) Validate(ctx ActionCtx) error
- type PushCmdParams
- func (p *PushCmdParams) Load(ctx ActionCtx) error
- func (p *PushCmdParams) PostInteractive(_ ActionCtx) error
- func (p *PushCmdParams) PreInteractive(ctx ActionCtx) error
- func (p *PushCmdParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *PushCmdParams) SetDefaults(ctx ActionCtx) error
- func (p *PushCmdParams) Validate(ctx ActionCtx) error
- type RenameAccountParams
- func (p *RenameAccountParams) Load(ctx ActionCtx) error
- func (p *RenameAccountParams) PostInteractive(ctx ActionCtx) error
- func (p *RenameAccountParams) PreInteractive(ctx ActionCtx) error
- func (p *RenameAccountParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RenameAccountParams) SetDefaults(ctx ActionCtx) error
- func (p *RenameAccountParams) Validate(ctx ActionCtx) error
- type RepParams
- func (p *RepParams) Load(ctx ActionCtx) error
- func (p *RepParams) PostInteractive(ctx ActionCtx) error
- func (p *RepParams) PreInteractive(ctx ActionCtx) error
- func (p *RepParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RepParams) SetDefaults(ctx ActionCtx) error
- func (p *RepParams) Validate(ctx ActionCtx) error
- type ReqParams
- func (p *ReqParams) Load(ctx ActionCtx) error
- func (p *ReqParams) PostInteractive(ctx ActionCtx) error
- func (p *ReqParams) PreInteractive(ctx ActionCtx) error
- func (p *ReqParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ReqParams) SetDefaults(ctx ActionCtx) error
- func (p *ReqParams) Validate(ctx ActionCtx) error
- type RevokeActivationParams
- func (p *RevokeActivationParams) Load(ctx ActionCtx) error
- func (p *RevokeActivationParams) PostInteractive(ctx ActionCtx) error
- func (p *RevokeActivationParams) PreInteractive(ctx ActionCtx) error
- func (p *RevokeActivationParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RevokeActivationParams) SetDefaults(ctx ActionCtx) error
- func (p *RevokeActivationParams) Validate(ctx ActionCtx) error
- type RevokeClearActivationParams
- func (p *RevokeClearActivationParams) Load(ctx ActionCtx) error
- func (p *RevokeClearActivationParams) PostInteractive(ctx ActionCtx) error
- func (p *RevokeClearActivationParams) PreInteractive(ctx ActionCtx) error
- func (p *RevokeClearActivationParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RevokeClearActivationParams) SetDefaults(ctx ActionCtx) error
- func (p *RevokeClearActivationParams) Validate(ctx ActionCtx) error
- type RevokeListActivationParams
- func (p *RevokeListActivationParams) Load(ctx ActionCtx) error
- func (p *RevokeListActivationParams) PostInteractive(ctx ActionCtx) error
- func (p *RevokeListActivationParams) PreInteractive(ctx ActionCtx) error
- func (p *RevokeListActivationParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RevokeListActivationParams) SetDefaults(ctx ActionCtx) error
- func (p *RevokeListActivationParams) Validate(ctx ActionCtx) error
- type RevokeListUserParams
- func (p *RevokeListUserParams) Load(ctx ActionCtx) error
- func (p *RevokeListUserParams) PostInteractive(ctx ActionCtx) error
- func (p *RevokeListUserParams) PreInteractive(ctx ActionCtx) error
- func (p *RevokeListUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RevokeListUserParams) SetDefaults(ctx ActionCtx) error
- func (p *RevokeListUserParams) Validate(ctx ActionCtx) error
- type RevokeUserParams
- func (p *RevokeUserParams) Load(ctx ActionCtx) error
- func (p *RevokeUserParams) PostInteractive(ctx ActionCtx) error
- func (p *RevokeUserParams) PreInteractive(ctx ActionCtx) error
- func (p *RevokeUserParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RevokeUserParams) SetDefaults(ctx ActionCtx) error
- func (p *RevokeUserParams) Validate(ctx ActionCtx) error
- type RttParams
- func (p *RttParams) Load(ctx ActionCtx) error
- func (p *RttParams) PostInteractive(ctx ActionCtx) error
- func (p *RttParams) PreInteractive(ctx ActionCtx) error
- func (p *RttParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *RttParams) SetDefaults(ctx ActionCtx) error
- func (p *RttParams) Validate(ctx ActionCtx) error
- type ScopedSkDescriber
- type SelfUpdate
- type ServerConfigGenerator
- type SetContextParams
- type SignerParams
- func (p *SignerParams) Edit(ctx ActionCtx) error
- func (p *SignerParams) ForceManagedAccountKey(ctx ActionCtx, kp nkeys.KeyPair)
- func (p *SignerParams) Resolve(ctx ActionCtx) error
- func (p *SignerParams) ResolveWithPriority(ctx ActionCtx, preferKey string) error
- func (p *SignerParams) SelectFromSigners(ctx ActionCtx, signers []string) error
- func (p *SignerParams) SetDefaults(kind nkeys.PrefixByte, allowManaged bool, ctx ActionCtx)
- func (p *SignerParams) SetPrompt(message string)
- type SigningKeysParams
- type Stack
- type SubParams
- func (p *SubParams) Load(ctx ActionCtx) error
- func (p *SubParams) PostInteractive(ctx ActionCtx) error
- func (p *SubParams) PreInteractive(ctx ActionCtx) error
- func (p *SubParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *SubParams) SetDefaults(ctx ActionCtx) error
- func (p *SubParams) Validate(ctx ActionCtx) error
- type TimeParams
- func (p *TimeParams) BindFlags(cmd *cobra.Command)
- func (p *TimeParams) Edit() error
- func (p *TimeParams) ExpiryDate() (int64, error)
- func (p *TimeParams) IsExpiryChanged() bool
- func (p *TimeParams) IsStartChanged() bool
- func (p *TimeParams) StartDate() (int64, error)
- func (p *TimeParams) Validate() error
- func (p *TimeParams) ValidateExpiry() error
- func (p *TimeParams) ValidateStart() error
- type ToolConfig
- type UpdateCheckFn
- type UpdateFn
- type UserContextParams
- type UserDescriber
- type UserPermissionLimits
- func (p *UserPermissionLimits) BindFlags(cmd *cobra.Command)
- func (p *UserPermissionLimits) Load(ctx ActionCtx, u jwt.UserPermissionLimits) error
- func (p *UserPermissionLimits) PostInteractive(_ ActionCtx) error
- func (p *UserPermissionLimits) Run(ctx ActionCtx, claim *jwt.UserPermissionLimits) (*store.Report, error)
- func (p *UserPermissionLimits) Validate(ctx ActionCtx) error
- type ValidateCmdParams
- func (p *ValidateCmdParams) Load(ctx ActionCtx) error
- func (p *ValidateCmdParams) PostInteractive(ctx ActionCtx) error
- func (p *ValidateCmdParams) PreInteractive(ctx ActionCtx) error
- func (p *ValidateCmdParams) Run(ctx ActionCtx) (store.Status, error)
- func (p *ValidateCmdParams) SetDefaults(ctx ActionCtx) error
- func (p *ValidateCmdParams) Validate(ctx ActionCtx) error
- type WideFun
Constants ¶
const EnvOperatorPrefix = "NSC_"
const EnvOperatorSuffix = "_OPERATOR"
const NscCwdOnlyEnv = "NSC_CWD_ONLY"
const NscHomeEnv = "NSC_HOME"
NscHomeEnv the folder for the config file
const NscNoGitIgnoreEnv = "NSC_NO_GIT_IGNORE"
const NscRootCasNatsEnv = "NATS_CA"
const NscTlsCertNatsEnv = "NATS_CERT"
const NscTlsKeyNatsEnv = "NATS_KEY"
const TestEnv = "NSC_TEST"
Variables ¶
var ErrNoOperator = errors.New("set an operator -- 'nsc env -o operatorName'")
var InteractiveFlag bool
var Json bool
var JsonPath string
var KeyPathFlag string
var NscCwdOnly bool
var Raw bool
var Wide = noopNameFilter
var WideFlag bool
Functions ¶
func AbbrevHomePaths ¶
func AccountJwtURL ¶
func AccountJwtURLFromString ¶
func AddLimits ¶
func AddLimits(table *tablewriter.Table, lim jwt.Limits)
func AddListValues ¶
func AddListValues(table *tablewriter.Table, label string, values []string)
func AddPermissions ¶
func AddPermissions(table *tablewriter.Table, u jwt.Permissions)
func AddStandardClaimInfo ¶
func AddStandardClaimInfo(table *tablewriter.Table, claims jwt.Claims)
func CreateAddAccountCmd ¶
func CreateAddOperatorCmd ¶ added in v0.0.3
func CreateAddUserCmd ¶
func CreateClearRevokeUserCmd ¶ added in v0.0.6
func CreateDeleteUserCmd ¶
func CreateDescribeUserCmd ¶
func CreateEditOperatorCmd ¶ added in v0.0.4
func CreateEditUserCmd ¶
func CreateListUsersCmd ¶
func CreatePushCmd ¶ added in v0.0.2
func CreateRevokeListUsersCmd ¶ added in v0.0.6
func CreateRevokeUserCmd ¶ added in v0.0.6
func DiffAccountLimits ¶
func EnterQuietMode ¶
func EnterQuietMode()
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ExecuteWithWriter ¶
ExecuteWithWriter adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. But writer is decided by the caller function returns error than os.Exit(1)
func GenerateConfig ¶
func GetField ¶
Extracts a value from a JSON path - keys can be "name" or "person.name" or "persons[0].name"
func GetLastRandomName ¶
func GetLastRandomName() string
GetLastRandomName returns the last generated name, useful for testing
func GetOperatorName ¶
func GetOperatorSigners ¶
func GetRandomName ¶
GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`
func GetRootCmd ¶
func GetToolName ¶
func GetToolName() string
func HoistRootFlags ¶
HoistRootFlags adds persistent flags that would be added by the cobra framework but are not because the unit tests are testing the command directly
func HumanizedDate ¶
func IsAccountAvailable ¶
func IsAccountPending ¶
func IsValidDir ¶
func JWTUpgradeBannerJWT ¶
func LoadFromFileOrURL ¶
func LoadFromURL ¶
func MaxArgs ¶
func MaxArgs(max int) cobra.PositionalArgs
func MaybeMakeDir ¶
func NKeyValidator ¶
func NKeyValidator(kind nkeys.PrefixByte) cli.Validator
func NameFlagOrArgument ¶
func OperatorJwtURL ¶
func ParseExpiry ¶
parse expiration argument - supported are YYYY-MM-DD for absolute, and relative (m)inute, (h)our, (d)ay, (w)week, (M)onth, (y)ear expressions
func ParseNumber ¶
func RenderDate ¶
func ResolveKeyFlag ¶
func ResolvePath ¶
Resolve a directory/file from an environment variable if not set defaultPath is returned
func RunMaybeStorelessAction ¶
func RunStoreLessAction ¶
func SamplingValidator ¶
func SeedNKeyValidatorMatching ¶
func SeedNKeyValidatorMatching(pukeys []string, kinds ...nkeys.PrefixByte) cli.Validator
func SetEnvOptions ¶
func SetEnvOptions()
func SetQuietMode ¶
func SetQuietMode(tf bool)
func SetToolName ¶
func SetToolName(name string)
func UnixToDate ¶
Types ¶
type AccountContextParams ¶
type AccountContextParams struct {
Name string
}
func (*AccountContextParams) BindFlags ¶
func (p *AccountContextParams) BindFlags(cmd *cobra.Command)
func (*AccountContextParams) Edit ¶
func (p *AccountContextParams) Edit(ctx ActionCtx) error
func (*AccountContextParams) SetDefaults ¶
func (p *AccountContextParams) SetDefaults(ctx ActionCtx) error
func (*AccountContextParams) Validate ¶
func (p *AccountContextParams) Validate(ctx ActionCtx) error
type AccountDescriber ¶
type AccountDescriber struct {
jwt.AccountClaims
}
func NewAccountDescriber ¶
func NewAccountDescriber(ac jwt.AccountClaims) *AccountDescriber
func (*AccountDescriber) Describe ¶
func (a *AccountDescriber) Describe() string
type AccountExport ¶
type AccountExport struct { OperatorName string jwt.AccountClaims }
func GetAllExports ¶
func GetAllExports() ([]AccountExport, error)
func (*AccountExport) Choices ¶
func (ae *AccountExport) Choices() []AccountExportChoice
type AccountExportChoice ¶
type AccountExportChoice struct { AccountExport Selection *jwt.Export }
func GetAccountExports ¶
func GetAccountExports(ac *jwt.AccountClaims) ([]AccountExportChoice, error)
func (*AccountExportChoice) String ¶
func (aec *AccountExportChoice) String() string
type AccountExportChoices ¶
type AccountExportChoices []AccountExportChoice
func (AccountExportChoices) String ¶
func (aes AccountExportChoices) String() []string
type AccountImport ¶
type AccountImportChoice ¶
type AccountImportChoice struct { AccountImport Selection *jwt.Import }
func (*AccountImportChoice) String ¶
func (aec *AccountImportChoice) String() string
type AccountImportChoices ¶
type AccountImportChoices []AccountImportChoice
func GetAccountImports ¶
func GetAccountImports(ac *jwt.AccountClaims) (AccountImportChoices, error)
func (AccountImportChoices) String ¶
func (aes AccountImportChoices) String() []string
type AccountUserContextParams ¶
type AccountUserContextParams struct { AccountContextParams UserContextParams }
func (*AccountUserContextParams) BindFlags ¶
func (p *AccountUserContextParams) BindFlags(cmd *cobra.Command)
func (*AccountUserContextParams) Edit ¶
func (p *AccountUserContextParams) Edit(ctx ActionCtx) error
func (*AccountUserContextParams) SetDefaults ¶
func (p *AccountUserContextParams) SetDefaults(ctx ActionCtx) error
func (*AccountUserContextParams) Validate ¶
func (p *AccountUserContextParams) Validate(ctx ActionCtx) error
type Action ¶
type Action interface { // SetDefaults that can be derived from cmd flags SetDefaults(ctx ActionCtx) error // PreInteractive ask user for values PreInteractive(ctx ActionCtx) error // Load any data needed for the Run Load(ctx ActionCtx) error // PostInteractive ask user for values related to the action PostInteractive(ctx ActionCtx) error // Validate the action Validate(ctx ActionCtx) error // Run the action Run(ctx ActionCtx) (store.Status, error) }
type ActionCtx ¶
type ActivationDescriber ¶
type ActivationDescriber struct {
jwt.ActivationClaims
}
func NewActivationDescriber ¶
func NewActivationDescriber(a jwt.ActivationClaims) *ActivationDescriber
func (*ActivationDescriber) Describe ¶
func (c *ActivationDescriber) Describe() string
type Actx ¶
type Actx struct {
// contains filtered or unexported fields
}
func (*Actx) CurrentCmd ¶
func (*Actx) NothingToDo ¶
type AddAccountParams ¶
type AddAccountParams struct { SignerParams TimeParams PermissionsParams // contains filtered or unexported fields }
func (*AddAccountParams) Load ¶
func (p *AddAccountParams) Load(ctx ActionCtx) error
func (*AddAccountParams) PostInteractive ¶
func (p *AddAccountParams) PostInteractive(ctx ActionCtx) error
func (*AddAccountParams) PreInteractive ¶
func (p *AddAccountParams) PreInteractive(ctx ActionCtx) error
func (*AddAccountParams) SetDefaults ¶
func (p *AddAccountParams) SetDefaults(ctx ActionCtx) error
func (*AddAccountParams) Validate ¶
func (p *AddAccountParams) Validate(ctx ActionCtx) error
type AddExportParams ¶
type AddExportParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*AddExportParams) Load ¶
func (p *AddExportParams) Load(ctx ActionCtx) error
func (*AddExportParams) PostInteractive ¶
func (p *AddExportParams) PostInteractive(_ ActionCtx) error
func (*AddExportParams) PreInteractive ¶
func (p *AddExportParams) PreInteractive(ctx ActionCtx) error
func (*AddExportParams) SetDefaults ¶
func (p *AddExportParams) SetDefaults(ctx ActionCtx) error
func (*AddExportParams) Validate ¶
func (p *AddExportParams) Validate(ctx ActionCtx) error
type AddImportParams ¶
type AddImportParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*AddImportParams) Load ¶
func (p *AddImportParams) Load(ctx ActionCtx) error
func (*AddImportParams) PostInteractive ¶
func (p *AddImportParams) PostInteractive(ctx ActionCtx) error
func (*AddImportParams) PreInteractive ¶
func (p *AddImportParams) PreInteractive(ctx ActionCtx) error
func (*AddImportParams) SetDefaults ¶
func (p *AddImportParams) SetDefaults(ctx ActionCtx) error
func (*AddImportParams) Validate ¶
func (p *AddImportParams) Validate(ctx ActionCtx) error
type AddMappingParams ¶
type AddMappingParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*AddMappingParams) Load ¶
func (p *AddMappingParams) Load(ctx ActionCtx) error
func (*AddMappingParams) PostInteractive ¶
func (p *AddMappingParams) PostInteractive(_ ActionCtx) error
func (*AddMappingParams) PreInteractive ¶
func (p *AddMappingParams) PreInteractive(ctx ActionCtx) error
func (*AddMappingParams) SetDefaults ¶
func (p *AddMappingParams) SetDefaults(ctx ActionCtx) error
func (*AddMappingParams) Validate ¶
func (p *AddMappingParams) Validate(ctx ActionCtx) error
type AddOperatorParams ¶
type AddOperatorParams struct { SignerParams TimeParams // contains filtered or unexported fields }
func (*AddOperatorParams) Load ¶
func (p *AddOperatorParams) Load(ctx ActionCtx) error
func (*AddOperatorParams) PostInteractive ¶
func (p *AddOperatorParams) PostInteractive(ctx ActionCtx) error
func (*AddOperatorParams) PreInteractive ¶
func (p *AddOperatorParams) PreInteractive(ctx ActionCtx) error
func (*AddOperatorParams) Run ¶
func (p *AddOperatorParams) Run(ctx ActionCtx) (store.Status, error)
func (*AddOperatorParams) SetDefaults ¶
func (p *AddOperatorParams) SetDefaults(ctx ActionCtx) error
func (*AddOperatorParams) Validate ¶
func (p *AddOperatorParams) Validate(ctx ActionCtx) error
type AddUserParams ¶
type AddUserParams struct { AccountContextParams SignerParams TimeParams PermissionsParams // contains filtered or unexported fields }
func (*AddUserParams) Load ¶
func (p *AddUserParams) Load(_ ActionCtx) error
func (*AddUserParams) PostInteractive ¶
func (p *AddUserParams) PostInteractive(_ ActionCtx) error
func (*AddUserParams) PreInteractive ¶
func (p *AddUserParams) PreInteractive(ctx ActionCtx) error
func (*AddUserParams) SetDefaults ¶
func (p *AddUserParams) SetDefaults(ctx ActionCtx) error
func (*AddUserParams) Validate ¶
func (p *AddUserParams) Validate(ctx ActionCtx) error
type ByAccountName ¶
type ByAccountName []AccountExport
func (ByAccountName) Len ¶
func (a ByAccountName) Len() int
func (ByAccountName) Less ¶
func (a ByAccountName) Less(i, j int) bool
func (ByAccountName) Swap ¶
func (a ByAccountName) Swap(i, j int)
type ClearRevokeUserParams ¶
type ClearRevokeUserParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
ClearRevokeUserParams hold the info necessary to add a user to the revocation list in an account
func (*ClearRevokeUserParams) Load ¶
func (p *ClearRevokeUserParams) Load(ctx ActionCtx) error
func (*ClearRevokeUserParams) PostInteractive ¶
func (p *ClearRevokeUserParams) PostInteractive(ctx ActionCtx) error
func (*ClearRevokeUserParams) PreInteractive ¶
func (p *ClearRevokeUserParams) PreInteractive(ctx ActionCtx) error
func (*ClearRevokeUserParams) Run ¶
func (p *ClearRevokeUserParams) Run(ctx ActionCtx) (store.Status, error)
func (*ClearRevokeUserParams) SetDefaults ¶
func (p *ClearRevokeUserParams) SetDefaults(ctx ActionCtx) error
func (*ClearRevokeUserParams) Validate ¶
func (p *ClearRevokeUserParams) Validate(ctx ActionCtx) error
type ContextConfig ¶
type ContextConfig struct { StoreRoot string `json:"store_root"` // where the projects are Operator string `json:"operator"` Account string `json:"account"` }
func GetCwdCtx ¶
func GetCwdCtx() *ContextConfig
func NewContextConfig ¶
func NewContextConfig(storeRoot string) (*ContextConfig, error)
func (*ContextConfig) ListAccounts ¶
func (c *ContextConfig) ListAccounts() ([]string, error)
func (*ContextConfig) ListOperators ¶
func (c *ContextConfig) ListOperators() []string
func (*ContextConfig) LoadStore ¶
func (c *ContextConfig) LoadStore(operatorName string) (*store.Store, error)
func (*ContextConfig) SetAccount ¶
func (c *ContextConfig) SetAccount(account string) error
func (*ContextConfig) SetAccountTemp ¶
func (c *ContextConfig) SetAccountTemp(account string) error
func (*ContextConfig) SetDefaults ¶
func (c *ContextConfig) SetDefaults()
deduce as much context as possible
func (*ContextConfig) SetOperator ¶
func (c *ContextConfig) SetOperator(operator string) error
type DeleteAccountParams ¶
type DeleteAccountParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*DeleteAccountParams) Load ¶
func (p *DeleteAccountParams) Load(ctx ActionCtx) error
func (*DeleteAccountParams) PostInteractive ¶
func (p *DeleteAccountParams) PostInteractive(ctx ActionCtx) error
func (*DeleteAccountParams) PreInteractive ¶
func (p *DeleteAccountParams) PreInteractive(ctx ActionCtx) error
func (*DeleteAccountParams) Run ¶
func (p *DeleteAccountParams) Run(ctx ActionCtx) (store.Status, error)
func (*DeleteAccountParams) SetDefaults ¶
func (p *DeleteAccountParams) SetDefaults(ctx ActionCtx) error
func (*DeleteAccountParams) Validate ¶
func (p *DeleteAccountParams) Validate(ctx ActionCtx) error
type DeleteExportParams ¶
type DeleteExportParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*DeleteExportParams) Load ¶
func (p *DeleteExportParams) Load(ctx ActionCtx) error
func (*DeleteExportParams) PostInteractive ¶
func (p *DeleteExportParams) PostInteractive(ctx ActionCtx) error
func (*DeleteExportParams) PreInteractive ¶
func (p *DeleteExportParams) PreInteractive(ctx ActionCtx) error
func (*DeleteExportParams) Run ¶
func (p *DeleteExportParams) Run(ctx ActionCtx) (store.Status, error)
func (*DeleteExportParams) SetDefaults ¶
func (p *DeleteExportParams) SetDefaults(ctx ActionCtx) error
func (*DeleteExportParams) Validate ¶
func (p *DeleteExportParams) Validate(ctx ActionCtx) error
type DeleteImportParams ¶
type DeleteImportParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*DeleteImportParams) Load ¶
func (p *DeleteImportParams) Load(ctx ActionCtx) error
func (*DeleteImportParams) PostInteractive ¶
func (p *DeleteImportParams) PostInteractive(ctx ActionCtx) error
func (*DeleteImportParams) PreInteractive ¶
func (p *DeleteImportParams) PreInteractive(ctx ActionCtx) error
func (*DeleteImportParams) Run ¶
func (p *DeleteImportParams) Run(ctx ActionCtx) (store.Status, error)
func (*DeleteImportParams) SetDefaults ¶
func (p *DeleteImportParams) SetDefaults(ctx ActionCtx) error
func (*DeleteImportParams) Validate ¶
func (p *DeleteImportParams) Validate(ctx ActionCtx) error
type DeleteMappingParams ¶
type DeleteMappingParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*DeleteMappingParams) Load ¶
func (p *DeleteMappingParams) Load(ctx ActionCtx) error
func (*DeleteMappingParams) PostInteractive ¶
func (p *DeleteMappingParams) PostInteractive(ctx ActionCtx) error
func (*DeleteMappingParams) PreInteractive ¶
func (p *DeleteMappingParams) PreInteractive(ctx ActionCtx) error
func (*DeleteMappingParams) Run ¶
func (p *DeleteMappingParams) Run(ctx ActionCtx) (store.Status, error)
func (*DeleteMappingParams) SetDefaults ¶
func (p *DeleteMappingParams) SetDefaults(ctx ActionCtx) error
func (*DeleteMappingParams) Validate ¶
func (p *DeleteMappingParams) Validate(ctx ActionCtx) error
type DeleteUserParams ¶
type DeleteUserParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*DeleteUserParams) Load ¶
func (p *DeleteUserParams) Load(ctx ActionCtx) error
func (*DeleteUserParams) PostInteractive ¶
func (p *DeleteUserParams) PostInteractive(ctx ActionCtx) error
func (*DeleteUserParams) PreInteractive ¶
func (p *DeleteUserParams) PreInteractive(ctx ActionCtx) error
func (*DeleteUserParams) SetDefaults ¶
func (p *DeleteUserParams) SetDefaults(ctx ActionCtx) error
func (*DeleteUserParams) Validate ¶
func (p *DeleteUserParams) Validate(ctx ActionCtx) error
type DescribeAccountParams ¶
type DescribeAccountParams struct { AccountContextParams jwt.AccountClaims // contains filtered or unexported fields }
func (*DescribeAccountParams) Load ¶
func (p *DescribeAccountParams) Load(ctx ActionCtx) error
func (*DescribeAccountParams) PostInteractive ¶
func (p *DescribeAccountParams) PostInteractive(_ ActionCtx) error
func (*DescribeAccountParams) PreInteractive ¶
func (p *DescribeAccountParams) PreInteractive(ctx ActionCtx) error
func (*DescribeAccountParams) Run ¶
func (p *DescribeAccountParams) Run(_ ActionCtx) (store.Status, error)
func (*DescribeAccountParams) SetDefaults ¶
func (p *DescribeAccountParams) SetDefaults(ctx ActionCtx) error
func (*DescribeAccountParams) Validate ¶
func (p *DescribeAccountParams) Validate(_ ActionCtx) error
type DescribeFile ¶
type DescribeFile struct {
// contains filtered or unexported fields
}
func (*DescribeFile) Load ¶
func (p *DescribeFile) Load(ctx ActionCtx) error
func (*DescribeFile) PostInteractive ¶
func (p *DescribeFile) PostInteractive(ctx ActionCtx) error
func (*DescribeFile) PreInteractive ¶
func (p *DescribeFile) PreInteractive(ctx ActionCtx) error
func (*DescribeFile) SetDefaults ¶
func (p *DescribeFile) SetDefaults(ctx ActionCtx) error
func (*DescribeFile) Validate ¶
func (p *DescribeFile) Validate(ctx ActionCtx) error
type DescribeOperatorParams ¶
type DescribeOperatorParams struct {
// contains filtered or unexported fields
}
func (*DescribeOperatorParams) Load ¶
func (p *DescribeOperatorParams) Load(ctx ActionCtx) error
func (*DescribeOperatorParams) PostInteractive ¶
func (p *DescribeOperatorParams) PostInteractive(_ ActionCtx) error
func (*DescribeOperatorParams) PreInteractive ¶
func (p *DescribeOperatorParams) PreInteractive(_ ActionCtx) error
func (*DescribeOperatorParams) Run ¶
func (p *DescribeOperatorParams) Run(_ ActionCtx) (store.Status, error)
func (*DescribeOperatorParams) SetDefaults ¶
func (p *DescribeOperatorParams) SetDefaults(ctx ActionCtx) error
func (*DescribeOperatorParams) Validate ¶
func (p *DescribeOperatorParams) Validate(_ ActionCtx) error
type DescribeUserParams ¶
type DescribeUserParams struct { AccountContextParams jwt.UserClaims // contains filtered or unexported fields }
func (*DescribeUserParams) Load ¶
func (p *DescribeUserParams) Load(ctx ActionCtx) error
func (*DescribeUserParams) PostInteractive ¶
func (p *DescribeUserParams) PostInteractive(_ ActionCtx) error
func (*DescribeUserParams) PreInteractive ¶
func (p *DescribeUserParams) PreInteractive(ctx ActionCtx) error
func (*DescribeUserParams) Run ¶
func (p *DescribeUserParams) Run(ctx ActionCtx) (store.Status, error)
func (*DescribeUserParams) SetDefaults ¶
func (p *DescribeUserParams) SetDefaults(ctx ActionCtx) error
func (*DescribeUserParams) Validate ¶
func (p *DescribeUserParams) Validate(_ ActionCtx) error
type EditAccountParams ¶
type EditAccountParams struct { AccountContextParams SignerParams GenericClaimsParams PermissionsParams // contains filtered or unexported fields }
func (*EditAccountParams) Load ¶
func (p *EditAccountParams) Load(ctx ActionCtx) error
func (*EditAccountParams) PostInteractive ¶
func (p *EditAccountParams) PostInteractive(ctx ActionCtx) error
func (*EditAccountParams) PreInteractive ¶
func (p *EditAccountParams) PreInteractive(ctx ActionCtx) error
func (*EditAccountParams) Run ¶
func (p *EditAccountParams) Run(ctx ActionCtx) (store.Status, error)
func (*EditAccountParams) SetDefaults ¶
func (p *EditAccountParams) SetDefaults(ctx ActionCtx) error
func (*EditAccountParams) Validate ¶
func (p *EditAccountParams) Validate(ctx ActionCtx) error
type EditExportParams ¶
type EditExportParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*EditExportParams) Load ¶
func (p *EditExportParams) Load(ctx ActionCtx) error
func (*EditExportParams) PostInteractive ¶
func (p *EditExportParams) PostInteractive(ctx ActionCtx) error
func (*EditExportParams) PreInteractive ¶
func (p *EditExportParams) PreInteractive(ctx ActionCtx) error
func (*EditExportParams) SetDefaults ¶
func (p *EditExportParams) SetDefaults(ctx ActionCtx) error
func (*EditExportParams) Validate ¶
func (p *EditExportParams) Validate(ctx ActionCtx) error
type EditOperatorParams ¶
type EditOperatorParams struct { SignerParams GenericClaimsParams // contains filtered or unexported fields }
func (*EditOperatorParams) Load ¶
func (p *EditOperatorParams) Load(ctx ActionCtx) error
func (*EditOperatorParams) PostInteractive ¶
func (p *EditOperatorParams) PostInteractive(ctx ActionCtx) error
func (*EditOperatorParams) PreInteractive ¶
func (p *EditOperatorParams) PreInteractive(ctx ActionCtx) error
func (*EditOperatorParams) Run ¶
func (p *EditOperatorParams) Run(ctx ActionCtx) (store.Status, error)
func (*EditOperatorParams) SetDefaults ¶
func (p *EditOperatorParams) SetDefaults(ctx ActionCtx) error
func (*EditOperatorParams) Validate ¶
func (p *EditOperatorParams) Validate(ctx ActionCtx) error
type EditScopedSkParams ¶
type EditScopedSkParams struct { UserPermissionLimits AccountContextParams SignerParams // contains filtered or unexported fields }
func (*EditScopedSkParams) Load ¶
func (p *EditScopedSkParams) Load(ctx ActionCtx) error
func (*EditScopedSkParams) PostInteractive ¶
func (p *EditScopedSkParams) PostInteractive(ctx ActionCtx) error
func (*EditScopedSkParams) PreInteractive ¶
func (p *EditScopedSkParams) PreInteractive(ctx ActionCtx) error
func (*EditScopedSkParams) Run ¶
func (p *EditScopedSkParams) Run(ctx ActionCtx) (store.Status, error)
func (*EditScopedSkParams) SetDefaults ¶
func (p *EditScopedSkParams) SetDefaults(ctx ActionCtx) error
func (*EditScopedSkParams) Validate ¶
func (p *EditScopedSkParams) Validate(ctx ActionCtx) error
type EditUserParams ¶
type EditUserParams struct { AccountContextParams SignerParams GenericClaimsParams UserPermissionLimits // contains filtered or unexported fields }
func (*EditUserParams) Load ¶
func (p *EditUserParams) Load(ctx ActionCtx) error
func (*EditUserParams) PostInteractive ¶
func (p *EditUserParams) PostInteractive(ctx ActionCtx) error
func (*EditUserParams) PreInteractive ¶
func (p *EditUserParams) PreInteractive(ctx ActionCtx) error
func (*EditUserParams) SetDefaults ¶
func (p *EditUserParams) SetDefaults(ctx ActionCtx) error
func (*EditUserParams) Validate ¶
func (p *EditUserParams) Validate(ctx ActionCtx) error
type ExportKeysParams ¶
type ExportKeysParams struct { Force bool Remove bool Dir string KeyCollectorParams }
func (*ExportKeysParams) Load ¶
func (p *ExportKeysParams) Load(ctx ActionCtx) error
func (*ExportKeysParams) PostInteractive ¶
func (p *ExportKeysParams) PostInteractive(ctx ActionCtx) error
func (*ExportKeysParams) PreInteractive ¶
func (p *ExportKeysParams) PreInteractive(ctx ActionCtx) error
func (*ExportKeysParams) SetDefaults ¶
func (p *ExportKeysParams) SetDefaults(ctx ActionCtx) error
func (*ExportKeysParams) Validate ¶
func (p *ExportKeysParams) Validate(ctx ActionCtx) error
type ExportsDescriber ¶
type ExportsDescriber struct {
jwt.Exports
}
func NewExportsDescriber ¶
func NewExportsDescriber(exports jwt.Exports) *ExportsDescriber
func (*ExportsDescriber) Describe ¶
func (e *ExportsDescriber) Describe() string
type FixCmd ¶
type FixCmd struct { Keys map[string]string KeyToPrincipalKey map[string]string Operators map[string]*OT // contains filtered or unexported fields }
func (*FixCmd) PostInteractive ¶
func (*FixCmd) PreInteractive ¶
func (*FixCmd) ReadAccountJwt ¶
func (*FixCmd) ReadGenericJwt ¶
func (*FixCmd) ReadOperatorJwt ¶
func (*FixCmd) ReadUserJwt ¶
func (*FixCmd) SetDefaults ¶
type GenerateActivationParams ¶
type GenerateActivationParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
func (*GenerateActivationParams) Load ¶
func (p *GenerateActivationParams) Load(ctx ActionCtx) error
func (*GenerateActivationParams) PostInteractive ¶
func (p *GenerateActivationParams) PostInteractive(ctx ActionCtx) error
func (*GenerateActivationParams) PreInteractive ¶
func (p *GenerateActivationParams) PreInteractive(ctx ActionCtx) error
func (*GenerateActivationParams) Run ¶
func (p *GenerateActivationParams) Run(ctx ActionCtx) (store.Status, error)
func (*GenerateActivationParams) SetDefaults ¶
func (p *GenerateActivationParams) SetDefaults(ctx ActionCtx) error
func (*GenerateActivationParams) Token ¶
func (p *GenerateActivationParams) Token() string
func (*GenerateActivationParams) Validate ¶
func (p *GenerateActivationParams) Validate(ctx ActionCtx) error
type GenerateCredsParams ¶
type GenerateCredsParams struct { AccountContextParams // contains filtered or unexported fields }
func (*GenerateCredsParams) Load ¶
func (p *GenerateCredsParams) Load(ctx ActionCtx) error
func (*GenerateCredsParams) PostInteractive ¶
func (p *GenerateCredsParams) PostInteractive(ctx ActionCtx) error
func (*GenerateCredsParams) PreInteractive ¶
func (p *GenerateCredsParams) PreInteractive(ctx ActionCtx) error
func (*GenerateCredsParams) Run ¶
func (p *GenerateCredsParams) Run(ctx ActionCtx) (store.Status, error)
func (*GenerateCredsParams) SetDefaults ¶
func (p *GenerateCredsParams) SetDefaults(ctx ActionCtx) error
func (*GenerateCredsParams) Validate ¶
func (p *GenerateCredsParams) Validate(ctx ActionCtx) error
type GenerateNKeysParam ¶
type GenerateNKeysParam struct {
// contains filtered or unexported fields
}
func (*GenerateNKeysParam) Load ¶
func (p *GenerateNKeysParam) Load(ctx ActionCtx) error
func (*GenerateNKeysParam) PostInteractive ¶
func (p *GenerateNKeysParam) PostInteractive(ctx ActionCtx) error
func (*GenerateNKeysParam) PreInteractive ¶
func (p *GenerateNKeysParam) PreInteractive(ctx ActionCtx) error
func (*GenerateNKeysParam) Run ¶
func (p *GenerateNKeysParam) Run(ctx ActionCtx) (store.Status, error)
func (*GenerateNKeysParam) SetDefaults ¶
func (p *GenerateNKeysParam) SetDefaults(ctx ActionCtx) error
func (*GenerateNKeysParam) Validate ¶
func (p *GenerateNKeysParam) Validate(ctx ActionCtx) error
type GenerateServerConfigParams ¶
type GenerateServerConfigParams struct {
// contains filtered or unexported fields
}
func (*GenerateServerConfigParams) Load ¶
func (p *GenerateServerConfigParams) Load(ctx ActionCtx) error
func (*GenerateServerConfigParams) PostInteractive ¶
func (p *GenerateServerConfigParams) PostInteractive(ctx ActionCtx) error
func (*GenerateServerConfigParams) PreInteractive ¶
func (p *GenerateServerConfigParams) PreInteractive(ctx ActionCtx) error
func (*GenerateServerConfigParams) Run ¶
func (p *GenerateServerConfigParams) Run(ctx ActionCtx) (store.Status, error)
func (*GenerateServerConfigParams) SetDefaults ¶
func (p *GenerateServerConfigParams) SetDefaults(ctx ActionCtx) error
func (*GenerateServerConfigParams) Validate ¶
func (p *GenerateServerConfigParams) Validate(ctx ActionCtx) error
type GenericClaimsParams ¶
type GenericClaimsParams struct { TimeParams // contains filtered or unexported fields }
GenericClaimsParams - TimeParams and tags
func (*GenericClaimsParams) Edit ¶
func (sp *GenericClaimsParams) Edit(current []string) error
func (*GenericClaimsParams) Run ¶
func (sp *GenericClaimsParams) Run(ctx ActionCtx, claim jwt.Claims, r *store.Report) error
func (*GenericClaimsParams) Valid ¶
func (sp *GenericClaimsParams) Valid() error
type ImportAccount ¶
type ImportAccount struct { SignerParams // contains filtered or unexported fields }
func (*ImportAccount) PostInteractive ¶
func (*ImportAccount) PreInteractive ¶
func (*ImportAccount) SetDefaults ¶
func (p *ImportAccount) SetDefaults(ctx ActionCtx) error
func (*ImportAccount) Validate ¶
func (p *ImportAccount) Validate(ctx ActionCtx) error
type ImportDescriber ¶
type ImportDescriber struct {
jwt.Import
}
func NewImportDescriber ¶
func NewImportDescriber(im jwt.Import) *ImportDescriber
func (*ImportDescriber) Brief ¶
func (i *ImportDescriber) Brief(table *tablewriter.Table)
func (*ImportDescriber) IsRemoteImport ¶
func (i *ImportDescriber) IsRemoteImport() bool
func (*ImportDescriber) LoadActivation ¶
func (i *ImportDescriber) LoadActivation() (*jwt.ActivationClaims, error)
type ImportKeysParams ¶
func (*ImportKeysParams) Load ¶
func (p *ImportKeysParams) Load(ctx ActionCtx) error
func (*ImportKeysParams) PostInteractive ¶
func (p *ImportKeysParams) PostInteractive(ctx ActionCtx) error
func (*ImportKeysParams) PreInteractive ¶
func (p *ImportKeysParams) PreInteractive(ctx ActionCtx) error
func (*ImportKeysParams) SetDefaults ¶
func (p *ImportKeysParams) SetDefaults(ctx ActionCtx) error
func (*ImportKeysParams) Validate ¶
func (p *ImportKeysParams) Validate(ctx ActionCtx) error
type ImportNKeyJob ¶
type ImportNKeyJob struct {
// contains filtered or unexported fields
}
type ImportUser ¶
type ImportUser struct {
// contains filtered or unexported fields
}
func (*ImportUser) PostInteractive ¶
func (*ImportUser) PreInteractive ¶
func (*ImportUser) SetDefaults ¶
func (p *ImportUser) SetDefaults(ctx ActionCtx) error
func (*ImportUser) Validate ¶
func (p *ImportUser) Validate(ctx ActionCtx) error
type ImportsDescriber ¶
type ImportsDescriber struct {
jwt.Imports
}
func NewImportsDescriber ¶
func NewImportsDescriber(imports jwt.Imports) *ImportsDescriber
func (*ImportsDescriber) Describe ¶
func (i *ImportsDescriber) Describe() string
type InitCmdParams ¶
type InitCmdParams struct { Prompt bool Dir string Name string ManagedOperatorName string CreateOperator bool Operator keys SystemAccount keys SystemUser keys Account keys User keys OperatorJwtURL string AccountServerURL string PushURL string PushStatus int PushMessage []byte Store *store.Store ServiceURLs jwt.StringList DebugOperatorURL string }
func (*InitCmdParams) Load ¶
func (p *InitCmdParams) Load(ctx ActionCtx) error
func (*InitCmdParams) PostInteractive ¶
func (p *InitCmdParams) PostInteractive(ctx ActionCtx) error
func (*InitCmdParams) PreInteractive ¶
func (p *InitCmdParams) PreInteractive(ctx ActionCtx) error
func (*InitCmdParams) SetDefaults ¶
func (p *InitCmdParams) SetDefaults(ctx ActionCtx) error
func (*InitCmdParams) Validate ¶
func (p *InitCmdParams) Validate(ctx ActionCtx) error
type InterceptorFn ¶
type Key ¶
type KeyCollectorParams ¶
type KeyCollectorParams struct { Operator bool Accounts bool Users bool All bool Unreferenced bool Account string User string Filter string }
func (*KeyCollectorParams) SetDefaults ¶
func (p *KeyCollectorParams) SetDefaults(ctx ActionCtx) error
type KnownOperator ¶
type KnownOperator struct { Name string `json:"name"` URL string `json:"url"` AccountServerURL string `json:"account_server_url"` }
func FindKnownOperator ¶
func FindKnownOperator(name string) (*KnownOperator, error)
type KnownOperators ¶
type KnownOperators []KnownOperator
func GetWellKnownOperators ¶
func GetWellKnownOperators() (KnownOperators, error)
type ListEditorParam ¶
type ListEditorParam struct { PromptMessage string AddMessage string FlagName string Values []string ValidatorFn cli.Validator }
func (*ListEditorParam) Edit ¶
func (e *ListEditorParam) Edit() error
func (*ListEditorParam) GetValues ¶
func (e *ListEditorParam) GetValues() []string
func (*ListEditorParam) Valid ¶
func (e *ListEditorParam) Valid() error
type ListKeysParams ¶
type ListKeysParams struct { Seeds bool KeyCollectorParams KS store.KeyStore }
func (*ListKeysParams) Load ¶
func (p *ListKeysParams) Load(ctx ActionCtx) error
func (*ListKeysParams) PostInteractive ¶
func (p *ListKeysParams) PostInteractive(ctx ActionCtx) error
func (*ListKeysParams) PreInteractive ¶
func (p *ListKeysParams) PreInteractive(ctx ActionCtx) error
func (*ListKeysParams) Report ¶
func (p *ListKeysParams) Report(ks Keys) string
func (*ListKeysParams) ReportSeeds ¶
func (p *ListKeysParams) ReportSeeds(ks Keys) string
func (*ListKeysParams) SetDefaults ¶
func (p *ListKeysParams) SetDefaults(ctx ActionCtx) error
func (*ListKeysParams) Validate ¶
func (p *ListKeysParams) Validate(ctx ActionCtx) error
type MappingsDescriber ¶
type MappingsDescriber jwt.Mapping
func NewMappingsDescriber ¶
func NewMappingsDescriber(m jwt.Mapping) *MappingsDescriber
func (*MappingsDescriber) Describe ¶
func (i *MappingsDescriber) Describe() string
type MemResolverConfigBuilder ¶
type MemResolverConfigBuilder struct {
// contains filtered or unexported fields
}
func NewMemResolverConfigBuilder ¶
func NewMemResolverConfigBuilder() *MemResolverConfigBuilder
func (*MemResolverConfigBuilder) Add ¶
func (cb *MemResolverConfigBuilder) Add(rawClaim []byte) error
func (*MemResolverConfigBuilder) Generate ¶
func (cb *MemResolverConfigBuilder) Generate() ([]byte, error)
func (*MemResolverConfigBuilder) GenerateConfig ¶
func (cb *MemResolverConfigBuilder) GenerateConfig() ([]byte, error)
func (*MemResolverConfigBuilder) GenerateDir ¶
func (cb *MemResolverConfigBuilder) GenerateDir() ([]byte, error)
func (*MemResolverConfigBuilder) SetOutputDir ¶
func (cb *MemResolverConfigBuilder) SetOutputDir(fp string) error
func (*MemResolverConfigBuilder) SetSystemAccount ¶
func (cb *MemResolverConfigBuilder) SetSystemAccount(id string) error
type MigrateCmdParams ¶
type MigrateCmdParams struct { Jobs []*MigrateJob // contains filtered or unexported fields }
func (*MigrateCmdParams) Load ¶
func (p *MigrateCmdParams) Load(ctx ActionCtx) error
func (*MigrateCmdParams) PostInteractive ¶
func (p *MigrateCmdParams) PostInteractive(ctx ActionCtx) error
func (*MigrateCmdParams) PreInteractive ¶
func (p *MigrateCmdParams) PreInteractive(ctx ActionCtx) error
func (*MigrateCmdParams) SetDefaults ¶
func (p *MigrateCmdParams) SetDefaults(ctx ActionCtx) error
func (*MigrateCmdParams) Validate ¶
func (p *MigrateCmdParams) Validate(ctx ActionCtx) error
type MigrateJob ¶
type MigrateJob struct {
// contains filtered or unexported fields
}
func NewMigrateJob ¶
func NewMigrateJob(url string, overwrite bool) MigrateJob
func (*MigrateJob) Load ¶
func (j *MigrateJob) Load(ctx ActionCtx)
func (*MigrateJob) OK ¶
func (j *MigrateJob) OK() bool
func (*MigrateJob) PostInteractive ¶
func (j *MigrateJob) PostInteractive(ctx ActionCtx)
func (*MigrateJob) Run ¶
func (j *MigrateJob) Run(ctx ActionCtx)
func (*MigrateJob) Validate ¶
func (j *MigrateJob) Validate(ctx ActionCtx)
type NKeyConfigBuilder ¶
type NKeyConfigBuilder struct {
// contains filtered or unexported fields
}
func NewNKeyConfigBuilder ¶
func NewNKeyConfigBuilder() *NKeyConfigBuilder
func (*NKeyConfigBuilder) Add ¶
func (cb *NKeyConfigBuilder) Add(rawClaim []byte) error
func (*NKeyConfigBuilder) AddClaim ¶
func (cb *NKeyConfigBuilder) AddClaim(c jwt.Claims)
func (*NKeyConfigBuilder) Generate ¶
func (cb *NKeyConfigBuilder) Generate() ([]byte, error)
func (*NKeyConfigBuilder) SetOutputDir ¶
func (cb *NKeyConfigBuilder) SetOutputDir(fp string) error
func (*NKeyConfigBuilder) SetSystemAccount ¶
func (cb *NKeyConfigBuilder) SetSystemAccount(id string) error
type NatsResolverConfigBuilder ¶
type NatsResolverConfigBuilder struct {
// contains filtered or unexported fields
}
func NewNatsResolverConfigBuilder ¶
func NewNatsResolverConfigBuilder() *NatsResolverConfigBuilder
func (*NatsResolverConfigBuilder) Add ¶
func (cb *NatsResolverConfigBuilder) Add(rawClaim []byte) error
func (*NatsResolverConfigBuilder) Generate ¶
func (cb *NatsResolverConfigBuilder) Generate() ([]byte, error)
func (*NatsResolverConfigBuilder) SetOutputDir ¶
func (cb *NatsResolverConfigBuilder) SetOutputDir(fp string) error
func (*NatsResolverConfigBuilder) SetSystemAccount ¶
func (cb *NatsResolverConfigBuilder) SetSystemAccount(id string) error
type NumberParams ¶
type NumberParams int64
func (*NumberParams) Edit ¶
func (e *NumberParams) Edit(prompt string) error
func (*NumberParams) Int64 ¶
func (e *NumberParams) Int64() int64
func (*NumberParams) Set ¶
func (e *NumberParams) Set(s string) error
func (*NumberParams) String ¶
func (e *NumberParams) String() string
func (*NumberParams) Type ¶
func (e *NumberParams) Type() string
func (*NumberParams) Valid ¶
func (e *NumberParams) Valid() error
type OT ¶
type OperatorDescriber ¶
type OperatorDescriber struct {
jwt.OperatorClaims
}
func NewOperatorDescriber ¶
func NewOperatorDescriber(o jwt.OperatorClaims) *OperatorDescriber
func (*OperatorDescriber) Describe ¶
func (o *OperatorDescriber) Describe() string
type PermissionsParams ¶
type PermissionsParams struct {
// contains filtered or unexported fields
}
func (*PermissionsParams) Edit ¶
func (p *PermissionsParams) Edit(hasPerm bool) error
func (*PermissionsParams) Run ¶
func (p *PermissionsParams) Run(perms *jwt.Permissions, ctx ActionCtx) (*store.Report, error)
func (*PermissionsParams) Validate ¶
func (p *PermissionsParams) Validate() error
type ProfileCmdParams ¶
type ProfileCmdParams struct {
// contains filtered or unexported fields
}
func (*ProfileCmdParams) Load ¶
func (p *ProfileCmdParams) Load(_ ActionCtx) error
func (*ProfileCmdParams) PostInteractive ¶
func (p *ProfileCmdParams) PostInteractive(_ ActionCtx) error
func (*ProfileCmdParams) PreInteractive ¶
func (p *ProfileCmdParams) PreInteractive(_ ActionCtx) error
func (*ProfileCmdParams) SetDefaults ¶
func (p *ProfileCmdParams) SetDefaults(_ ActionCtx) error
func (*ProfileCmdParams) Validate ¶
func (p *ProfileCmdParams) Validate(ctx ActionCtx) error
type PubKeyChoice ¶
type PubKeyParams ¶
type PubKeyParams struct { AllowWildcard bool // contains filtered or unexported fields }
func (*PubKeyParams) BindFlags ¶
func (e *PubKeyParams) BindFlags(flagName string, shorthand string, kind nkeys.PrefixByte, cmd *cobra.Command)
func (*PubKeyParams) Edit ¶
func (e *PubKeyParams) Edit() error
func (*PubKeyParams) Select ¶
func (e *PubKeyParams) Select(label string, choices ...PubKeyChoice) error
func (*PubKeyParams) Valid ¶
func (e *PubKeyParams) Valid() error
type PubParams ¶
type PubParams struct { AccountUserContextParams // contains filtered or unexported fields }
ToolPubParams is the driving struct for the list plans action
func (*PubParams) PostInteractive ¶
func (*PubParams) PreInteractive ¶
func (*PubParams) SetDefaults ¶
type PullJob ¶
type PullParams ¶
type PullParams struct { AccountContextParams All bool Jobs PullJobs Overwrite bool // contains filtered or unexported fields }
func (*PullParams) Load ¶
func (p *PullParams) Load(ctx ActionCtx) error
func (*PullParams) PostInteractive ¶
func (p *PullParams) PostInteractive(ctx ActionCtx) error
func (*PullParams) PreInteractive ¶
func (p *PullParams) PreInteractive(ctx ActionCtx) error
func (*PullParams) SetDefaults ¶
func (p *PullParams) SetDefaults(ctx ActionCtx) error
func (*PullParams) Validate ¶
func (p *PullParams) Validate(ctx ActionCtx) error
type PushCmdParams ¶
type PushCmdParams struct { AccountContextParams ASU string // contains filtered or unexported fields }
func (*PushCmdParams) Load ¶
func (p *PushCmdParams) Load(ctx ActionCtx) error
func (*PushCmdParams) PostInteractive ¶
func (p *PushCmdParams) PostInteractive(_ ActionCtx) error
func (*PushCmdParams) PreInteractive ¶
func (p *PushCmdParams) PreInteractive(ctx ActionCtx) error
func (*PushCmdParams) SetDefaults ¶
func (p *PushCmdParams) SetDefaults(ctx ActionCtx) error
func (*PushCmdParams) Validate ¶
func (p *PushCmdParams) Validate(ctx ActionCtx) error
type RenameAccountParams ¶
type RenameAccountParams struct { SignerParams // contains filtered or unexported fields }
func (*RenameAccountParams) Load ¶
func (p *RenameAccountParams) Load(ctx ActionCtx) error
func (*RenameAccountParams) PostInteractive ¶
func (p *RenameAccountParams) PostInteractive(ctx ActionCtx) error
func (*RenameAccountParams) PreInteractive ¶
func (p *RenameAccountParams) PreInteractive(ctx ActionCtx) error
func (*RenameAccountParams) Run ¶
func (p *RenameAccountParams) Run(ctx ActionCtx) (store.Status, error)
func (*RenameAccountParams) SetDefaults ¶
func (p *RenameAccountParams) SetDefaults(ctx ActionCtx) error
func (*RenameAccountParams) Validate ¶
func (p *RenameAccountParams) Validate(ctx ActionCtx) error
type RepParams ¶
type RepParams struct { AccountUserContextParams // contains filtered or unexported fields }
func (*RepParams) PostInteractive ¶
func (*RepParams) PreInteractive ¶
func (*RepParams) SetDefaults ¶
type ReqParams ¶
type ReqParams struct { AccountUserContextParams // contains filtered or unexported fields }
func (*ReqParams) PostInteractive ¶
func (*ReqParams) PreInteractive ¶
func (*ReqParams) SetDefaults ¶
type RevokeActivationParams ¶
type RevokeActivationParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
RevokeActivationParams hold the info necessary to add a user to the revocation list in an account
func (*RevokeActivationParams) Load ¶
func (p *RevokeActivationParams) Load(ctx ActionCtx) error
func (*RevokeActivationParams) PostInteractive ¶
func (p *RevokeActivationParams) PostInteractive(ctx ActionCtx) error
func (*RevokeActivationParams) PreInteractive ¶
func (p *RevokeActivationParams) PreInteractive(ctx ActionCtx) error
func (*RevokeActivationParams) Run ¶
func (p *RevokeActivationParams) Run(ctx ActionCtx) (store.Status, error)
func (*RevokeActivationParams) SetDefaults ¶
func (p *RevokeActivationParams) SetDefaults(ctx ActionCtx) error
func (*RevokeActivationParams) Validate ¶
func (p *RevokeActivationParams) Validate(ctx ActionCtx) error
type RevokeClearActivationParams ¶
type RevokeClearActivationParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
RevokeClearActivationParams hold the info necessary to add a user to the revocation list in an account
func (*RevokeClearActivationParams) Load ¶
func (p *RevokeClearActivationParams) Load(ctx ActionCtx) error
func (*RevokeClearActivationParams) PostInteractive ¶
func (p *RevokeClearActivationParams) PostInteractive(ctx ActionCtx) error
func (*RevokeClearActivationParams) PreInteractive ¶
func (p *RevokeClearActivationParams) PreInteractive(ctx ActionCtx) error
func (*RevokeClearActivationParams) Run ¶
func (p *RevokeClearActivationParams) Run(ctx ActionCtx) (store.Status, error)
func (*RevokeClearActivationParams) SetDefaults ¶
func (p *RevokeClearActivationParams) SetDefaults(ctx ActionCtx) error
func (*RevokeClearActivationParams) Validate ¶
func (p *RevokeClearActivationParams) Validate(ctx ActionCtx) error
type RevokeListActivationParams ¶
type RevokeListActivationParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
RevokeListActivationParams hold the info necessary to add a user to the revocation list in an account
func (*RevokeListActivationParams) Load ¶
func (p *RevokeListActivationParams) Load(ctx ActionCtx) error
func (*RevokeListActivationParams) PostInteractive ¶
func (p *RevokeListActivationParams) PostInteractive(ctx ActionCtx) error
func (*RevokeListActivationParams) PreInteractive ¶
func (p *RevokeListActivationParams) PreInteractive(ctx ActionCtx) error
func (*RevokeListActivationParams) Run ¶
func (p *RevokeListActivationParams) Run(ctx ActionCtx) (store.Status, error)
func (*RevokeListActivationParams) SetDefaults ¶
func (p *RevokeListActivationParams) SetDefaults(ctx ActionCtx) error
func (*RevokeListActivationParams) Validate ¶
func (p *RevokeListActivationParams) Validate(ctx ActionCtx) error
type RevokeListUserParams ¶
type RevokeListUserParams struct { AccountContextParams // contains filtered or unexported fields }
RevokeListUserParams hold the info necessary to add a user to the revocation list in an account
func (*RevokeListUserParams) Load ¶
func (p *RevokeListUserParams) Load(ctx ActionCtx) error
func (*RevokeListUserParams) PostInteractive ¶
func (p *RevokeListUserParams) PostInteractive(ctx ActionCtx) error
func (*RevokeListUserParams) PreInteractive ¶
func (p *RevokeListUserParams) PreInteractive(ctx ActionCtx) error
func (*RevokeListUserParams) Run ¶
func (p *RevokeListUserParams) Run(ctx ActionCtx) (store.Status, error)
func (*RevokeListUserParams) SetDefaults ¶
func (p *RevokeListUserParams) SetDefaults(ctx ActionCtx) error
func (*RevokeListUserParams) Validate ¶
func (p *RevokeListUserParams) Validate(ctx ActionCtx) error
type RevokeUserParams ¶
type RevokeUserParams struct { AccountContextParams SignerParams // contains filtered or unexported fields }
RevokeUserParams hold the info necessary to add a user to the revocation list in an account
func (*RevokeUserParams) Load ¶
func (p *RevokeUserParams) Load(ctx ActionCtx) error
func (*RevokeUserParams) PostInteractive ¶
func (p *RevokeUserParams) PostInteractive(ctx ActionCtx) error
func (*RevokeUserParams) PreInteractive ¶
func (p *RevokeUserParams) PreInteractive(ctx ActionCtx) error
func (*RevokeUserParams) SetDefaults ¶
func (p *RevokeUserParams) SetDefaults(ctx ActionCtx) error
func (*RevokeUserParams) Validate ¶
func (p *RevokeUserParams) Validate(ctx ActionCtx) error
type RttParams ¶
type RttParams struct { AccountUserContextParams // contains filtered or unexported fields }
func (*RttParams) PostInteractive ¶
func (*RttParams) PreInteractive ¶
func (*RttParams) SetDefaults ¶
type ScopedSkDescriber ¶
type ScopedSkDescriber jwt.UserScope
func NewScopedSkDescriber ¶
func NewScopedSkDescriber(m *jwt.UserScope) *ScopedSkDescriber
func (*ScopedSkDescriber) Describe ¶
func (s *ScopedSkDescriber) Describe() string
type SelfUpdate ¶
type SelfUpdate struct { }
func NewSelfUpdate ¶
func NewSelfUpdate() (*SelfUpdate, error)
NewSelfUpdate creates a new self update object
type ServerConfigGenerator ¶
type SetContextParams ¶
func (*SetContextParams) PrintEnv ¶
func (p *SetContextParams) PrintEnv(cmd *cobra.Command)
type SignerParams ¶
type SignerParams struct {
// contains filtered or unexported fields
}
SignerParams is shared UI for a signer (-K flag). The key for a signer is never generated and must be provided
func (*SignerParams) Edit ¶
func (p *SignerParams) Edit(ctx ActionCtx) error
func (*SignerParams) ForceManagedAccountKey ¶
func (p *SignerParams) ForceManagedAccountKey(ctx ActionCtx, kp nkeys.KeyPair)
func (*SignerParams) Resolve ¶
func (p *SignerParams) Resolve(ctx ActionCtx) error
func (*SignerParams) ResolveWithPriority ¶
func (p *SignerParams) ResolveWithPriority(ctx ActionCtx, preferKey string) error
func (*SignerParams) SelectFromSigners ¶
func (p *SignerParams) SelectFromSigners(ctx ActionCtx, signers []string) error
func (*SignerParams) SetDefaults ¶
func (p *SignerParams) SetDefaults(kind nkeys.PrefixByte, allowManaged bool, ctx ActionCtx)
func (*SignerParams) SetPrompt ¶
func (p *SignerParams) SetPrompt(message string)
type SigningKeysParams ¶
type SigningKeysParams struct {
// contains filtered or unexported fields
}
func (*SigningKeysParams) BindFlags ¶
func (e *SigningKeysParams) BindFlags(flagName string, shorthand string, kind nkeys.PrefixByte, cmd *cobra.Command)
func (*SigningKeysParams) Edit ¶
func (e *SigningKeysParams) Edit() error
func (*SigningKeysParams) PublicKeys ¶
func (e *SigningKeysParams) PublicKeys() ([]string, error)
func (*SigningKeysParams) Valid ¶
func (e *SigningKeysParams) Valid() error
type SubParams ¶
type SubParams struct { AccountUserContextParams // contains filtered or unexported fields }
func (*SubParams) PostInteractive ¶
func (*SubParams) PreInteractive ¶
func (*SubParams) SetDefaults ¶
type TimeParams ¶
func (*TimeParams) BindFlags ¶
func (p *TimeParams) BindFlags(cmd *cobra.Command)
func (*TimeParams) Edit ¶
func (p *TimeParams) Edit() error
func (*TimeParams) ExpiryDate ¶
func (p *TimeParams) ExpiryDate() (int64, error)
func (*TimeParams) IsExpiryChanged ¶
func (p *TimeParams) IsExpiryChanged() bool
func (*TimeParams) IsStartChanged ¶
func (p *TimeParams) IsStartChanged() bool
func (*TimeParams) StartDate ¶
func (p *TimeParams) StartDate() (int64, error)
func (*TimeParams) Validate ¶
func (p *TimeParams) Validate() error
func (*TimeParams) ValidateExpiry ¶
func (p *TimeParams) ValidateExpiry() error
func (*TimeParams) ValidateStart ¶
func (p *TimeParams) ValidateStart() error
type ToolConfig ¶
type ToolConfig struct { ContextConfig GithubUpdates string `json:"github_updates"` // git hub repo LastUpdate int64 `json:"last_update"` }
func LoadOrInit ¶
func LoadOrInit(github string, toolHomeEnvName string) (*ToolConfig, error)
func (*ToolConfig) Save ¶
func (d *ToolConfig) Save() error
func (*ToolConfig) SetVersion ¶
func (d *ToolConfig) SetVersion(version string)
type UpdateCheckFn ¶
type UserContextParams ¶
type UserContextParams struct {
Name string
}
func (*UserContextParams) BindFlags ¶
func (p *UserContextParams) BindFlags(cmd *cobra.Command)
func (*UserContextParams) Edit ¶
func (p *UserContextParams) Edit(ctx ActionCtx) error
func (*UserContextParams) SetDefaults ¶
func (p *UserContextParams) SetDefaults(ctx ActionCtx) error
func (*UserContextParams) Validate ¶
func (p *UserContextParams) Validate(ctx ActionCtx) error
type UserDescriber ¶
type UserDescriber struct {
jwt.UserClaims
}
func NewUserDescriber ¶
func NewUserDescriber(u jwt.UserClaims) *UserDescriber
func (*UserDescriber) Describe ¶
func (u *UserDescriber) Describe() string
type UserPermissionLimits ¶
type UserPermissionLimits struct { PermissionsParams // contains filtered or unexported fields }
func (*UserPermissionLimits) BindFlags ¶
func (p *UserPermissionLimits) BindFlags(cmd *cobra.Command)
func (*UserPermissionLimits) Load ¶
func (p *UserPermissionLimits) Load(ctx ActionCtx, u jwt.UserPermissionLimits) error
func (*UserPermissionLimits) PostInteractive ¶
func (p *UserPermissionLimits) PostInteractive(_ ActionCtx) error
func (*UserPermissionLimits) Run ¶
func (p *UserPermissionLimits) Run(ctx ActionCtx, claim *jwt.UserPermissionLimits) (*store.Report, error)
func (*UserPermissionLimits) Validate ¶
func (p *UserPermissionLimits) Validate(ctx ActionCtx) error
type ValidateCmdParams ¶
type ValidateCmdParams struct { AccountContextParams // contains filtered or unexported fields }
func (*ValidateCmdParams) Load ¶
func (p *ValidateCmdParams) Load(ctx ActionCtx) error
func (*ValidateCmdParams) PostInteractive ¶
func (p *ValidateCmdParams) PostInteractive(ctx ActionCtx) error
func (*ValidateCmdParams) PreInteractive ¶
func (p *ValidateCmdParams) PreInteractive(ctx ActionCtx) error
func (*ValidateCmdParams) Run ¶
func (p *ValidateCmdParams) Run(ctx ActionCtx) (store.Status, error)
func (*ValidateCmdParams) SetDefaults ¶
func (p *ValidateCmdParams) SetDefaults(ctx ActionCtx) error
func (*ValidateCmdParams) Validate ¶
func (p *ValidateCmdParams) Validate(ctx ActionCtx) error
Source Files ¶
- accountcontextparams.go
- accountusercontextparams.go
- action.go
- add.go
- addaccount.go
- addexport.go
- addimport.go
- addmapping.go
- addoperator.go
- adduser.go
- common.go
- contextconfig.go
- defaults.go
- delete.go
- deleteaccount.go
- deleteexport.go
- deleteimport.go
- deletemapping.go
- deleteuser.go
- describe.go
- describeaccount.go
- describejwt.go
- describeoperator.go
- describer.go
- describeuser.go
- edit.go
- editaccount.go
- editexport.go
- editoperator.go
- editscopedsk.go
- edituser.go
- env.go
- export.go
- exportkeys.go
- fixenv.go
- friendlynamecollector.go
- generate.go
- generateactivation.go
- generatecreds.go
- generatediagram.go
- generatenkey.go
- generateprofile.go
- generateserverconfig.go
- genericclaimparams.go
- importaccount.go
- importcollector.go
- importkeys.go
- importuser.go
- init.go
- jsonpath.go
- keycollector.go
- keys.go
- list.go
- listeditor.go
- listkeys.go
- memresolverconfigbuilder.go
- migrate.go
- names_generator.go
- natsresolverconfigbuilder.go
- nkeyconfigbuilder.go
- numberparams.go
- pubkeyparams.go
- pubtool.go
- pull.go
- push.go
- reissueoperator.go
- rename.go
- replytool.go
- reqtool.go
- revoke.go
- revoke_clearactivation.go
- revoke_listactivation.go
- revoke_listusers.go
- revokeactivation.go
- revokeclearuser.go
- revokeuser.go
- root.go
- rtttool.go
- signerparams.go
- signingkeyseditor.go
- subtool.go
- test.go
- timeparams.go
- tool.go
- update.go
- upgradejwt.go
- usercontextparams.go
- validate.go
- wellknownoperator.go