Documentation ¶
Index ¶
- type Result
- type SearchResult
- type SparrowClient
- func (scl *SparrowClient) Add(rs *base.Resource) Result
- func (scl *SparrowClient) AddGroup(groupJson string) Result
- func (scl *SparrowClient) AddUser(userJson string) Result
- func (scl *SparrowClient) ApproveJoinReq(serverId uint16) Result
- func (scl *SparrowClient) Delete(rid string, rt *schema.ResourceType) Result
- func (scl *SparrowClient) DirectLogin(username string, password string, domain string) error
- func (scl *SparrowClient) GetAll(rt *schema.ResourceType) SearchResult
- func (scl *SparrowClient) GetGroup(id string) Result
- func (scl *SparrowClient) GetResource(id string, rt *schema.ResourceType) Result
- func (scl *SparrowClient) GetUser(id string) Result
- func (scl *SparrowClient) MakeSchemaAware() error
- func (scl *SparrowClient) ParseResource(data []byte) (*base.Resource, error)
- func (scl *SparrowClient) Patch(patchReq string, rid string, rt *schema.ResourceType, rsVersion string, ...) Result
- func (scl *SparrowClient) Replace(rid string, replaceJson string, rt *schema.ResourceType, rsVersion string) Result
- func (scl *SparrowClient) SendJoinReq(host string, port int) Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchResult ¶
type SparrowClient ¶
type SparrowClient struct { Schemas map[string]*schema.Schema ResTypes map[string]*schema.ResourceType // contains filtered or unexported fields }
func NewSparrowClient ¶
func NewSparrowClient(baseUrl string) *SparrowClient
func (*SparrowClient) AddGroup ¶
func (scl *SparrowClient) AddGroup(groupJson string) Result
func (*SparrowClient) AddUser ¶
func (scl *SparrowClient) AddUser(userJson string) Result
func (*SparrowClient) ApproveJoinReq ¶
func (scl *SparrowClient) ApproveJoinReq(serverId uint16) Result
func (*SparrowClient) Delete ¶
func (scl *SparrowClient) Delete(rid string, rt *schema.ResourceType) Result
func (*SparrowClient) DirectLogin ¶
func (scl *SparrowClient) DirectLogin(username string, password string, domain string) error
func (*SparrowClient) GetAll ¶
func (scl *SparrowClient) GetAll(rt *schema.ResourceType) SearchResult
func (*SparrowClient) GetGroup ¶
func (scl *SparrowClient) GetGroup(id string) Result
func (*SparrowClient) GetResource ¶
func (scl *SparrowClient) GetResource(id string, rt *schema.ResourceType) Result
func (*SparrowClient) GetUser ¶
func (scl *SparrowClient) GetUser(id string) Result
func (*SparrowClient) MakeSchemaAware ¶
func (scl *SparrowClient) MakeSchemaAware() error
func (*SparrowClient) ParseResource ¶
func (scl *SparrowClient) ParseResource(data []byte) (*base.Resource, error)
func (*SparrowClient) Patch ¶
func (scl *SparrowClient) Patch(patchReq string, rid string, rt *schema.ResourceType, rsVersion string, returnAttrs string) Result
func (*SparrowClient) Replace ¶
func (scl *SparrowClient) Replace(rid string, replaceJson string, rt *schema.ResourceType, rsVersion string) Result
func (*SparrowClient) SendJoinReq ¶
func (scl *SparrowClient) SendJoinReq(host string, port int) Result
Click to show internal directories.
Click to hide internal directories.