Documentation ¶
Index ¶
- Constants
- Variables
- func Execute(opts ...ExecuteOptFunc)
- func HandleSuccess(command *cobra.Command, id string, t table.Model, policyObject interface{})
- func InitProfile(c *cli.Cli, onlyNew bool) (*profiles.Profile, *profiles.ProfileStore)
- func MountRoot(newRoot *cobra.Command, cmd *cobra.Command) error
- func NewHandler(c *cli.Cli) handlers.Handler
- type ExecuteConfig
- type ExecuteOptFunc
Constants ¶
View Source
const ( TDFTYPE_ZTDF = "ztdf" TDF3 = "tdf3" NANO = "nano" Size_1MB = 1024 * 1024 )
Variables ¶
View Source
var ( OtdfctlCfg config.Config RootCmd = &man.Docs.GetDoc("<root>").Command )
View Source
var TDF = "tdf"
Functions ¶
func Execute ¶
func Execute(opts ...ExecuteOptFunc)
func HandleSuccess ¶
HandleSuccess prints a success message according to the configured format (styled table or JSON)
func InitProfile ¶ added in v0.10.0
InitProfile initializes the profile store and loads the profile specified in the flags if onlyNew is set to true, a new profile will be created and returned returns the profile and the current profile store
Types ¶
type ExecuteConfig ¶
type ExecuteConfig struct {
// contains filtered or unexported fields
}
type ExecuteOptFunc ¶
type ExecuteOptFunc func(c ExecuteConfig) ExecuteConfig
func WithMountTo ¶
func WithMountTo(cmd *cobra.Command, renameCmd *cobra.Command) ExecuteOptFunc
Source Files ¶
- auth-clearCachedCredentials.go
- auth-clientCredentials.go
- auth-login.go
- auth-logout.go
- auth-printAccessToken.go
- auth.go
- config.go
- dev-selectors.go
- dev.go
- execute.go
- interactive.go
- kas-grants.go
- kas-registry.go
- policy-attributeNamespaces.go
- policy-attributeValues.go
- policy-attributes.go
- policy-resourceMappings.go
- policy-subjectConditionSets.go
- policy-subjectMappings.go
- policy.go
- profile.go
- root.go
- tdf-decrypt.go
- tdf-encrypt.go
- tdf-inspect.go
Click to show internal directories.
Click to hide internal directories.