Versions in this module Expand all Collapse all v1 v1.1.0 Feb 9, 2016 Changes in this version + func RegisterTypeMap(m TypeMap) + type ApiClient interface + Create func(ptr IObject) error + Delete func(ptr IObject) error + DeleteByUuid func(typename, uuid string) error + FQNameByUuid func(uuid string) ([]string, error) + FindByName func(typename string, fqn string) (IObject, error) + FindByUuid func(typename string, uuid string) (IObject, error) + List func(typename string) ([]ListResult, error) + ListByParent func(typename string, parentID string) ([]ListResult, error) + ListDetail func(typename string, fields []string) ([]IObject, error) + ListDetailByParent func(typename string, parentID string, fields []string) ([]IObject, error) + Update func(ptr IObject) error + UuidByName func(typename string, fqn string) (string, error) + type Authenticator interface + AddAuthentication func(*http.Request) error + type Client struct + func NewClient(server string, port int) *Client + func (c *Client) Create(ptr IObject) error + func (c *Client) Delete(ptr IObject) error + func (c *Client) DeleteByUuid(typename, uuid string) error + func (c *Client) FQNameByUuid(uuid string) ([]string, error) + func (c *Client) FindByName(typename string, fqn string) (IObject, error) + func (c *Client) FindByUuid(typename string, uuid string) (IObject, error) + func (c *Client) GetField(obj IObject, field string) error + func (c *Client) GetServer() string + func (c *Client) List(typename string) ([]ListResult, error) + func (c *Client) ListByParent(typename string, parentID string) ([]ListResult, error) + func (c *Client) ListDetail(typename string, fields []string) ([]IObject, error) + func (c *Client) ListDetailByParent(typename string, parentID string, fields []string) ([]IObject, error) + func (c *Client) ReadListResult(typename string, result *ListResult) (IObject, error) + func (c *Client) ReadReference(typename string, ref *Reference) (IObject, error) + func (c *Client) SetAuthenticator(auth Authenticator) + func (c *Client) Update(ptr IObject) error + func (c *Client) UpdateReference(msg *ReferenceUpdateMsg) error + func (c *Client) UuidByName(typename string, fqn string) (string, error) + type IObject interface + GetDefaultParent func() []string + GetDefaultParentType func() string + GetFQName func() []string + GetHref func() string + GetName func() string + GetParentType func() string + GetType func() string + GetUuid func() string + SetClient func(objectInterface) + SetFQName func(string, []string) + SetName func(string) + SetUuid func(string) + UpdateDone func() + UpdateObject func() ([]byte, error) + UpdateReferences func() error + type KeystoneClient struct + func NewKeystoneClient(auth_url, tenant_name, username, password, token string) *KeystoneClient + func (kClient *KeystoneClient) AddAuthentication(req *http.Request) error + func (kClient *KeystoneClient) Authenticate() error + type KeystoneToken struct + Expires string + Id string + Issued_At string + Tenant struct{ ... } + type LinkAttribute interface + type ListResult struct + Fq_name []string + Href string + Uuid string + type NopAuthenticator struct + func (*NopAuthenticator) AddAuthentication(*http.Request) error + type ObjectBase struct + func (obj *ObjectBase) GetFQName() []string + func (obj *ObjectBase) GetField(ptr IObject, field string) error + func (obj *ObjectBase) GetHref() string + func (obj *ObjectBase) GetName() string + func (obj *ObjectBase) GetParentType() string + func (obj *ObjectBase) GetUuid() string + func (obj *ObjectBase) IsTransient() bool + func (obj *ObjectBase) MarshalCommon(m map[string]*json.RawMessage) error + func (obj *ObjectBase) MarshalId(m map[string]*json.RawMessage) error + func (obj *ObjectBase) SetClient(c objectInterface) + func (obj *ObjectBase) SetFQName(parentType string, fqn []string) + func (obj *ObjectBase) SetUuid(uuid string) + func (obj *ObjectBase) UnmarshalCommon(m map[string]json.RawMessage) error + func (obj *ObjectBase) UpdateReference(ptr IObject, field string, current, prev ReferenceList) error + func (obj *ObjectBase) VSetName(vPtr IObject, name string) + func (obj *ObjectBase) VSetParent(vPtr IObject, parent IObject) + type Reference struct + Attr LinkAttribute + Href string + To []string + Uuid string + type ReferenceList []Reference + type ReferencePair struct + Attribute LinkAttribute + Object IObject + type ReferenceUpdateMsg struct + Attr LinkAttribute + Operation string + RefFQName []string + RefType string + RefUuid string + Type string + Uuid string + type TypeMap map[string]reflect.Type