ctl

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCmd

type AuthCmd struct{}

AuthCmd supports the AuthEntity RPC.

func (*AuthCmd) Execute

func (*AuthCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute is the interface method that runs the actions of the cmdlet.

func (*AuthCmd) Name

func (*AuthCmd) Name() string

Name of this cmdlet is 'auth'

func (*AuthCmd) SetFlags

func (*AuthCmd) SetFlags(f *flag.FlagSet)

SetFlags is required by the interface but AuthCmd has no flags to set.

func (*AuthCmd) Synopsis

func (*AuthCmd) Synopsis() string

Synopsis for the cmdlet

func (*AuthCmd) Usage

func (*AuthCmd) Usage() string

Usage of this cmdlet in long form.

type CapabilitiesCmd

type CapabilitiesCmd struct {
	// contains filtered or unexported fields
}

CapabilitiesCmd supports the ModifyCapabilities RPC.

func (*CapabilitiesCmd) Execute

func (p *CapabilitiesCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute is the interface method that runs the actions of the cmdlet.

func (*CapabilitiesCmd) Name

func (*CapabilitiesCmd) Name() string

Name of this cmdlet is 'modify-capabilities'

func (*CapabilitiesCmd) SetFlags

func (p *CapabilitiesCmd) SetFlags(f *flag.FlagSet)

SetFlags is called to set flags specific to this cmdlet

func (*CapabilitiesCmd) Synopsis

func (*CapabilitiesCmd) Synopsis() string

Synopsis for the cmdlet

func (*CapabilitiesCmd) Usage

func (*CapabilitiesCmd) Usage() string

Usage of this cmdlet in long form.

type ChangeSecretCmd

type ChangeSecretCmd struct {
	// contains filtered or unexported fields
}

ChangeSecretCmd services the ChangeSecret RPC

func (*ChangeSecretCmd) Execute

func (p *ChangeSecretCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute is the interface function to run the cmdlet.

func (*ChangeSecretCmd) Name

func (*ChangeSecretCmd) Name() string

Name of this cmdlet is 'change-secret'

func (*ChangeSecretCmd) SetFlags

func (p *ChangeSecretCmd) SetFlags(f *flag.FlagSet)

SetFlags is the interface function to set flags specific to this cmdlet.

func (*ChangeSecretCmd) Synopsis

func (*ChangeSecretCmd) Synopsis() string

Synopsis for the cmdlet.

func (*ChangeSecretCmd) Usage

func (*ChangeSecretCmd) Usage() string

Usage in long form for the cmdlet.

type CreateEntityCmd

type CreateEntityCmd struct {
	// contains filtered or unexported fields
}

CreateEntityCmd requests entity creation on the server.

func (*CreateEntityCmd) Execute

func (p *CreateEntityCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*CreateEntityCmd) Name

func (*CreateEntityCmd) Name() string

Name of this cmdlet is 'new-entity'

func (*CreateEntityCmd) SetFlags

func (p *CreateEntityCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the flags specific to this command.

func (*CreateEntityCmd) Synopsis

func (*CreateEntityCmd) Synopsis() string

Synopsis returns the short-form usage information.

func (*CreateEntityCmd) Usage

func (*CreateEntityCmd) Usage() string

Usage returns the long-form usage information.

type CreateGroupCmd

type CreateGroupCmd struct {
	// contains filtered or unexported fields
}

CreateGroupCmd requests the server to provision a new group.

func (*CreateGroupCmd) Execute

func (p *CreateGroupCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*CreateGroupCmd) Name

func (*CreateGroupCmd) Name() string

Name of this cmdlet will be 'new-group'

func (*CreateGroupCmd) SetFlags

func (p *CreateGroupCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*CreateGroupCmd) Synopsis

func (*CreateGroupCmd) Synopsis() string

Synopsis returns the short-form usage.

func (*CreateGroupCmd) Usage

func (*CreateGroupCmd) Usage() string

Usage returns the long format usage information.

type DestroyEntityCmd

type DestroyEntityCmd struct {
	// contains filtered or unexported fields
}

DestroyEntityCmd requests the server to remove an entity.

func (*DestroyEntityCmd) Execute

func (p *DestroyEntityCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet

func (*DestroyEntityCmd) Name

func (*DestroyEntityCmd) Name() string

Name of this cmdlet is 'remove-entity'

func (*DestroyEntityCmd) SetFlags

func (p *DestroyEntityCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*DestroyEntityCmd) Synopsis

func (*DestroyEntityCmd) Synopsis() string

Synopsis returns the short-form usage information.

func (*DestroyEntityCmd) Usage

func (*DestroyEntityCmd) Usage() string

Usage returns the long-form usage information.

type DestroyGroupCmd

type DestroyGroupCmd struct {
	// contains filtered or unexported fields
}

DestroyGroupCmd deletes a group

func (*DestroyGroupCmd) Execute

func (p *DestroyGroupCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute is the interface function which runs this cmdlet.

func (*DestroyGroupCmd) Name

func (*DestroyGroupCmd) Name() string

Name returns the name of this cmdlet.

func (*DestroyGroupCmd) SetFlags

func (p *DestroyGroupCmd) SetFlags(f *flag.FlagSet)

SetFlags is the interface function which sets flags specific to this cmdlet.

func (*DestroyGroupCmd) Synopsis

func (*DestroyGroupCmd) Synopsis() string

Synopsis returns the short-form info for this cmdlet.

func (*DestroyGroupCmd) Usage

func (*DestroyGroupCmd) Usage() string

Usage returns the long-form info form this cmdlet.

type DestroyTokenCmd

type DestroyTokenCmd struct{}

DestroyTokenCmd clears the local token.

func (*DestroyTokenCmd) Execute

func (*DestroyTokenCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute is the interface method that runs the actions of the cmdlet.

func (*DestroyTokenCmd) Name

func (*DestroyTokenCmd) Name() string

Name to return for this cmdlet.

func (*DestroyTokenCmd) SetFlags

func (*DestroyTokenCmd) SetFlags(f *flag.FlagSet)

SetFlags is required by the interface but DestroyTokenCmd has no flags to set.

func (*DestroyTokenCmd) Synopsis

func (*DestroyTokenCmd) Synopsis() string

Synopsis for the cmdlet.

func (*DestroyTokenCmd) Usage

func (*DestroyTokenCmd) Usage() string

Usage for the cmdlet.

type EntityInfoCmd

type EntityInfoCmd struct {
	// contains filtered or unexported fields
}

EntityInfoCmd summons information on a named entity

func (*EntityInfoCmd) Execute

func (p *EntityInfoCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute is called to run this cmdlet.

func (*EntityInfoCmd) Name

func (*EntityInfoCmd) Name() string

Name of this cmdlet is 'entity-info'

func (*EntityInfoCmd) SetFlags

func (p *EntityInfoCmd) SetFlags(f *flag.FlagSet)

SetFlags processes the flags for this cmdlet.

func (*EntityInfoCmd) Synopsis

func (*EntityInfoCmd) Synopsis() string

Synopsis for the cmdlet.

func (*EntityInfoCmd) Usage

func (*EntityInfoCmd) Usage() string

Usage info for the cmdlet.

type EntityMembershipCmd

type EntityMembershipCmd struct {
	// contains filtered or unexported fields
}

EntityMembershipCmd modifies the direct group membership for an entity.

func (*EntityMembershipCmd) Execute

func (cmd *EntityMembershipCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*EntityMembershipCmd) Name

func (*EntityMembershipCmd) Name() string

Name of this cmdlet will be 'entity-membership'

func (*EntityMembershipCmd) SetFlags

func (cmd *EntityMembershipCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*EntityMembershipCmd) Synopsis

func (*EntityMembershipCmd) Synopsis() string

Synopsis returns the short-form usage information

func (*EntityMembershipCmd) Usage

func (*EntityMembershipCmd) Usage() string

Usage returns the long form usage information.

type GetTokenCmd

type GetTokenCmd struct{}

GetTokenCmd gets a NetAuth token for later use.

func (*GetTokenCmd) Execute

func (*GetTokenCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute summons the token and stores it for later use.

func (*GetTokenCmd) Name

func (*GetTokenCmd) Name() string

Name of this cmdlet will be 'get-token'

func (*GetTokenCmd) SetFlags

func (*GetTokenCmd) SetFlags(f *flag.FlagSet)

SetFlags is required by the interface specification but GetTokenCmd takes no flags.

func (*GetTokenCmd) Synopsis

func (*GetTokenCmd) Synopsis() string

Synopsis returns the short-form usage information

func (*GetTokenCmd) Usage

func (*GetTokenCmd) Usage() string

Usage returns the long-form usage information.

type GroupExpansionsCmd

type GroupExpansionsCmd struct {
	// contains filtered or unexported fields
}

GroupExpansionsCmd modifies group expansion rules

func (*GroupExpansionsCmd) Execute

func (p *GroupExpansionsCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the requested actions against the server.

func (*GroupExpansionsCmd) Name

func (*GroupExpansionsCmd) Name() string

Name of this cmdlet will be 'group-expansions'

func (*GroupExpansionsCmd) SetFlags

func (p *GroupExpansionsCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*GroupExpansionsCmd) Synopsis

func (*GroupExpansionsCmd) Synopsis() string

Synopsis returns the short-form usage.

func (*GroupExpansionsCmd) Usage

func (*GroupExpansionsCmd) Usage() string

Usage returns the long-form usage.

type GroupInfoCmd

type GroupInfoCmd struct {
	// contains filtered or unexported fields
}

GroupInfoCmd returns information about a named group filtered for specific fields.

func (*GroupInfoCmd) Execute

func (p *GroupInfoCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute gets the group and prints information on it.

func (*GroupInfoCmd) Name

func (*GroupInfoCmd) Name() string

Name of this cmdlet will be 'group-info'

func (*GroupInfoCmd) SetFlags

func (p *GroupInfoCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*GroupInfoCmd) Synopsis

func (*GroupInfoCmd) Synopsis() string

Synopsis returns the short-form usage.

func (*GroupInfoCmd) Usage

func (*GroupInfoCmd) Usage() string

Usage returns the long-form usage.

type InspectTokenCmd

type InspectTokenCmd struct{}

InspectTokenCmd examines the local token and prints properties about it

func (*InspectTokenCmd) Execute

func (*InspectTokenCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*InspectTokenCmd) Name

func (*InspectTokenCmd) Name() string

Name of this cmdlet is 'inspect-token'

func (*InspectTokenCmd) SetFlags

func (*InspectTokenCmd) SetFlags(f *flag.FlagSet)

SetFlags is required by the interface, but InspectTokenCmd has no flags of its own.

func (*InspectTokenCmd) Synopsis

func (*InspectTokenCmd) Synopsis() string

Synopsis returns the short-form usage.

func (*InspectTokenCmd) Usage

func (*InspectTokenCmd) Usage() string

Usage returns the long-form usage.

type ListGroupsCmd

type ListGroupsCmd struct {
	// contains filtered or unexported fields
}

ListGroupsCmd lists the groups for either a specific entity, or of the entire server.

func (*ListGroupsCmd) Execute

func (p *ListGroupsCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*ListGroupsCmd) Name

func (*ListGroupsCmd) Name() string

Name of this cmdlet will be 'list-groups'

func (*ListGroupsCmd) SetFlags

func (p *ListGroupsCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags

func (*ListGroupsCmd) Synopsis

func (*ListGroupsCmd) Synopsis() string

Synopsis returns the short form usage information.

func (*ListGroupsCmd) Usage

func (*ListGroupsCmd) Usage() string

Usage returns the long form usage information.

type ListMembersCmd

type ListMembersCmd struct {
	// contains filtered or unexported fields
}

ListMembersCmd lists the entities that are members of a named group.

func (*ListMembersCmd) Execute

func (p *ListMembersCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*ListMembersCmd) Name

func (*ListMembersCmd) Name() string

Name of this cmdlet is 'list-members'

func (*ListMembersCmd) SetFlags

func (p *ListMembersCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the flags specific to this cmdlet.

func (*ListMembersCmd) Synopsis

func (*ListMembersCmd) Synopsis() string

Synopsis returns the short-form usage for this cmdlet.

func (*ListMembersCmd) Usage

func (*ListMembersCmd) Usage() string

Usage returns the long-form usage for this cmdlet.

type ModifyGroupCmd

type ModifyGroupCmd struct {
	// contains filtered or unexported fields
}

ModifyGroupCmd modifies mutable information on a group.

func (*ModifyGroupCmd) Execute

func (p *ModifyGroupCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*ModifyGroupCmd) Name

func (*ModifyGroupCmd) Name() string

Name of this cmdlet is 'modify-group'

func (*ModifyGroupCmd) SetFlags

func (p *ModifyGroupCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags

func (*ModifyGroupCmd) Synopsis

func (*ModifyGroupCmd) Synopsis() string

Synopsis returns the short-form usage information.

func (*ModifyGroupCmd) Usage

func (*ModifyGroupCmd) Usage() string

Usage returns the long-form usage information.

type ModifyKeysCmd

type ModifyKeysCmd struct {
	// contains filtered or unexported fields
}

ModifyKeysCmd adds, removes, and lists the keys visible on an entity.

func (*ModifyKeysCmd) Execute

func (p *ModifyKeysCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*ModifyKeysCmd) Name

func (*ModifyKeysCmd) Name() string

Name of this cmdlet is 'modify-keys'

func (*ModifyKeysCmd) SetFlags

func (p *ModifyKeysCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*ModifyKeysCmd) Synopsis

func (*ModifyKeysCmd) Synopsis() string

Synopsis returns the short-form usage information.

func (*ModifyKeysCmd) Usage

func (*ModifyKeysCmd) Usage() string

Usage returns the long-form usage information.

type ModifyMetaCmd

type ModifyMetaCmd struct {
	GECOS        string
	PrimaryGroup string
	// contains filtered or unexported fields
}

ModifyMetaCmd requests the server to modify the EntityMeta section of an entity.

func (*ModifyMetaCmd) Execute

func (p *ModifyMetaCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*ModifyMetaCmd) Name

func (*ModifyMetaCmd) Name() string

Name of this cmdlet is 'modify-meta'

func (*ModifyMetaCmd) SetFlags

func (p *ModifyMetaCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*ModifyMetaCmd) Synopsis

func (*ModifyMetaCmd) Synopsis() string

Synopsis returns short-form usage information.

func (*ModifyMetaCmd) Usage

func (*ModifyMetaCmd) Usage() string

Usage returns long-form usage information.

type PingCmd

type PingCmd struct{}

PingCmd requests the server to run its health checks and return the status.

func (*PingCmd) Execute

func (*PingCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*PingCmd) Name

func (*PingCmd) Name() string

Name of this cmdlet is 'ping'

func (*PingCmd) SetFlags

func (*PingCmd) SetFlags(f *flag.FlagSet)

SetFlags is required by the interface, but PingCmd has no flags of its own.

func (*PingCmd) Synopsis

func (*PingCmd) Synopsis() string

Synopsis returns the short-form usage information.

func (*PingCmd) Usage

func (*PingCmd) Usage() string

Usage returns the long-form usage inforamtion.

type UntypedMetaCmd added in v0.0.10

type UntypedMetaCmd struct {
	// contains filtered or unexported fields
}

UntypedMetaCmd requests the server to modify the untyped metadata on groups and entities.

func (*UntypedMetaCmd) Execute added in v0.0.10

func (p *UntypedMetaCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs the cmdlet.

func (*UntypedMetaCmd) Name added in v0.0.10

func (*UntypedMetaCmd) Name() string

Name of this cmdlet is 'untyped-meta'

func (*UntypedMetaCmd) SetFlags added in v0.0.10

func (p *UntypedMetaCmd) SetFlags(f *flag.FlagSet)

SetFlags sets the cmdlet specific flags.

func (*UntypedMetaCmd) Synopsis added in v0.0.10

func (*UntypedMetaCmd) Synopsis() string

Synopsis returns short-form usage information.

func (*UntypedMetaCmd) Usage added in v0.0.10

func (*UntypedMetaCmd) Usage() string

Usage returns long-form usage information.

type ValidateTokenCmd

type ValidateTokenCmd struct{}

ValidateTokenCmd requests server side token validation.

func (*ValidateTokenCmd) Execute

func (*ValidateTokenCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute runs this cmdlet.

func (*ValidateTokenCmd) Name

func (*ValidateTokenCmd) Name() string

Name of this cmdlet is 'validate-token'

func (*ValidateTokenCmd) SetFlags

func (*ValidateTokenCmd) SetFlags(f *flag.FlagSet)

SetFlags is required by the interface but ValidateTokenCmd has no flags of its own.

func (*ValidateTokenCmd) Synopsis

func (*ValidateTokenCmd) Synopsis() string

Synopsis returns short-form usage information.

func (*ValidateTokenCmd) Usage

func (*ValidateTokenCmd) Usage() string

Usage returns long-form usage information.

Jump to

Keyboard shortcuts

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