Documentation ¶
Overview ¶
Package actor in goiardi encompasses both Chef clients and users. They're basically the same thing. Clients are the more usual case - users are mainly used for the web interface (which goiardi doesn't have yet).
Index ¶
- func GetList() []string
- type Actor
- func (c *Actor) Delete() error
- func (c *Actor) DocId() string
- func (c *Actor) Flatten() []string
- func (c *Actor) GenerateKeys() (string, error)
- func (a *Actor) GetName() string
- func (c *Actor) Index() string
- func (c *Actor) Rename(new_name string) util.Gerror
- func (c *Actor) Save() error
- func (a *Actor) URLType() string
- func (c *Actor) UpdateFromJson(json_actor map[string]interface{}, cheftype string) util.Gerror
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { Name string `json:"name"` NodeName string `json:"node_name"` JsonClass string `json:"json_class"` ChefType string `json:"chef_type"` Validator bool `json:"validator"` Orgname string `json:"orgname"` PublicKey string `json:"public_key"` Admin bool `json:"admin"` Certificate string `json:"certificate"` }
func NewFromJson ¶
Build a new client/user from a json object
func (*Actor) GenerateKeys ¶
Generate a new set of RSA keys for the client. The new private key is saved with the client, the public key is given to the client and not saved on the server at all. */
Click to show internal directories.
Click to hide internal directories.