github.com/bigcommerce/nomad@v0.9.3-bc/command/acl_policy.go (about)

     1  package command
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/mitchellh/cli"
     7  )
     8  
     9  type ACLPolicyCommand struct {
    10  	Meta
    11  }
    12  
    13  func (f *ACLPolicyCommand) Help() string {
    14  	helpText := `
    15  Usage: nomad acl policy <subcommand> [options] [args]
    16  
    17    This command groups subcommands for interacting with ACL policies. Nomad's ACL
    18    system can be used to control access to data and APIs. ACL policies allow a
    19    set of capabilities or actions to be granted or whitelisted. For a full guide
    20    see: https://www.nomadproject.io/guides/acl.html
    21  
    22    Create an ACL policy:
    23  
    24        $ nomad acl policy apply <name> <policy-file>
    25  
    26    List ACL policies:
    27  
    28        $ nomad acl policy list
    29  
    30    Inspect an ACL policy:
    31  
    32        $ nomad acl policy info <policy>
    33  
    34    Please see the individual subcommand help for detailed usage information.
    35  `
    36  	return strings.TrimSpace(helpText)
    37  }
    38  
    39  func (f *ACLPolicyCommand) Synopsis() string {
    40  	return "Interact with ACL policies"
    41  }
    42  
    43  func (f *ACLPolicyCommand) Name() string { return "acl policy" }
    44  
    45  func (f *ACLPolicyCommand) Run(args []string) int {
    46  	return cli.RunResultHelp
    47  }