Versions in this module Expand all Collapse all v0 v0.0.1 Apr 28, 2022 Changes in this version + type ACL struct + Owner attributes.Explicit[string] + Permissions Permissions + Sharing Sharing + type Authenticator interface + AuthenticateRequest func(*Client, *http.Request) error + type Client struct + TLSInsecureSkipVerify bool + Timeout time.Duration + URL string + func (c *Client) EntryACLURL(e interface{}) (*url.URL, error) + func (c *Client) EntryURL(e interface{}) (*url.URL, error) + func (c *Client) RequestAndHandle(builder RequestBuilder, handler ResponseHandler) error + func (c *Client) ServiceURL(s interface{}) (*url.URL, error) + func (client *Client) Create(entry interface{}) error + func (client *Client) Delete(entry interface{}) error + func (client *Client) List(entries interface{}) error + func (client *Client) ListID(entries interface{}, id ID) error + func (client *Client) ListNamespace(entries interface{}, ns Namespace) error + func (client *Client) Read(entry interface{}) error + func (client *Client) ReadACL(entry interface{}, acl *ACL) error + func (client *Client) Update(entry interface{}) error + func (client *Client) UpdateACL(entry interface{}, acl ACL) error + type ConfID struct + File string + Namespace Namespace + Stanza string + func (confID *ConfID) Parse(idURL string) error + func (confID *ConfID) UnmarshalJSON(data []byte) error + func (confID ConfID) GetEntryPath(path string) (string, error) + func (confID ConfID) GetServicePath(path string) (string, error) + func (confID ConfID) SetURLValues(key string, v *url.Values) error + type Error struct + Code ErrorCode + Message string + StackTrace string + Wrapped error + func (err Error) Error() string + type ErrorCode int + const ErrorEndpoint + const ErrorHTTPClient + const ErrorID + const ErrorMissingTitle + const ErrorMissingURL + const ErrorNamespace + const ErrorNilValue + const ErrorNotFound + const ErrorOverwriteValue + const ErrorPtr + const ErrorResponseBody + const ErrorSharing + const ErrorSlice + const ErrorSplunkMessage + const ErrorUnauthorized + const ErrorUndefined + const ErrorValues + type ID struct + Namespace Namespace + Title string + func ParseID(idURL string) (ID, error) + func (id *ID) Parse(idURL string) error + func (id *ID) UnmarshalJSON(data []byte) error + func (id ID) GetEntryPath(path string) (string, error) + func (id ID) GetServicePath(path string) (string, error) + func (id ID) SetURLValues(key string, v *url.Values) error + func (id ID) URL() (string, error) + type Namespace struct + App string + User string + func (ns Namespace) GetServicePath(path string) (string, error) + type Permissions struct + Read []string + Write []string + type RequestBuilder func(*http.Request) error + func BuildRequestAuthenticate(c *Client) RequestBuilder + func BuildRequestBodyValues(i interface{}) RequestBuilder + func BuildRequestBodyValuesSelective(c interface{}, tag string) RequestBuilder + func BuildRequestEntryACLURL(c *Client, entry interface{}, acl ACL) RequestBuilder + func BuildRequestEntryURL(c *Client, entry interface{}) RequestBuilder + func BuildRequestGetServiceStatusCodes(entry interface{}, codes *service.StatusCodes) RequestBuilder + func BuildRequestMethod(method string) RequestBuilder + func BuildRequestOutputModeJSON() RequestBuilder + func BuildRequestServiceURL(c *Client, service interface{}) RequestBuilder + func ComposeRequestBuilder(builders ...RequestBuilder) RequestBuilder + type ResponseHandler func(*http.Response) error + func ComposeResponseHandler(handlers ...ResponseHandler) ResponseHandler + func HandleResponseCode(code int, errorResponseHandler ResponseHandler) ResponseHandler + func HandleResponseEntries(entries interface{}) ResponseHandler + func HandleResponseEntry(entry interface{}) ResponseHandler + func HandleResponseJSON(i interface{}) ResponseHandler + func HandleResponseJSONMessagesCustomError(code ErrorCode) ResponseHandler + func HandleResponseJSONMessagesError() ResponseHandler + func HandleResponseRequireCode(code int, errorResponseHandler ResponseHandler) ResponseHandler + func HandleResponseXML(i interface{}) ResponseHandler + func HandleResponseXMLMessagesCustomError(code ErrorCode) ResponseHandler + func HandleResponseXMLMessagesError() ResponseHandler + type Sharing string + const SharingApp + const SharingGlobal + const SharingUndefined + const SharingUser + func (sharing Sharing) MarshalJSON() ([]byte, error) + type Titler interface + Title func() string