Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFRObjects ¶
Read in an Object from the reader and create it in the ForgeRock stack todo: Check for overwrite,
func RegisterCreateObjectHandler ¶
func RegisterCreateObjectHandler(objectKinds []string, handler CreateObjectHandler)
register Create Object handlers for the given object types
Types ¶
type CRESTResult ¶
type CRESTResult struct { Result []interface{} `json:"result"` ResultCount int64 `json:"resultCount"` PagedResultsCookie string `json:"pagedResultsCookie` RemainingPagedResults int64 `json:"remainingPagedResults"` TotalPagedResults int64 `json:"totalPagedResults"` TotalPagedResultPolicy string `json:"totalPagedResultsPolicy"` }
A query response returned from CREST
func GetCRESTResult ¶
func GetCRESTResult(req *http.Request) (CRESTResult, error)
Make a CREST request. http is already set up with the method, url and any cookies/ headers
type CreateObjectHandler ¶
A function that knows how to create an Object of a certain type. For example, create a policy object in OpenAM
type FRObject ¶
type FRObject struct { Kind string `json:"kind"` // Object type Metadata map[string]string `json:"metadata"` Items *[]interface{} `json:"spec"` }
Represents a serialized object on disk. We add some metadata and object type information so we can deserialize to the right object
func ReadFRConfig ¶
Read in FR Object from a stream. The stream is assumed to be JSON or YAML We use the YAML decoder because YAML is a superset of JSON So this works with both types