Documentation
¶
Index ¶
- Constants
- type GEXT
- func (gext *GEXT) GetAction() GEXTAction
- func (gext *GEXT) GetCacheReady() bool
- func (gext *GEXT) GetExists() bool
- func (gext *GEXT) GetHasData() bool
- func (gext *GEXT) GetLevel() int
- func (gext *GEXT) GetName() string
- func (gext *GEXT) GetRootPath() *gnmi.Path
- func (gext *GEXT) GetStatus() ResourceStatus
- func (gext *GEXT) SetAction(s GEXTAction)
- func (gext *GEXT) SetCacheReady(s bool)
- func (gext *GEXT) SetExists(s bool)
- func (gext *GEXT) SetHasData(s bool)
- func (gext *GEXT) SetLevel(s int)
- func (gext *GEXT) SetName(s string)
- func (gext *GEXT) SetRootPath(s *gnmi.Path)
- func (gext *GEXT) SetStatus(s ResourceStatus)
- func (gext *GEXT) String() (string, error)
- type GEXTAction
- type ResourceStatus
Constants ¶
View Source
const ( ErrorNotReady = "not ready" ErrorNotExists = "does not exist" ErrorNotSuccess = "status" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GEXT ¶
type GEXT struct {
Action GEXTAction `json:"action,omitempty"`
Name string `json:"name,omitempty"`
Level int `json:"level,omitempty"`
RootPath *gnmi.Path `json:"rootPath,omitempty"`
Status ResourceStatus `json:"status,omitempty"`
Exists bool `json:"exists,omitempty"`
HasData bool `json:"hasData,omitempty"`
CacheReady bool `json:"cacheReady,omitempty"`
}
GEXT identifies an extension to GNMI to indicate the Actions and Parameters of a managed resource
func String2GEXT ¶
func (*GEXT) GetAction ¶
func (gext *GEXT) GetAction() GEXTAction
func (*GEXT) GetCacheReady ¶
func (*GEXT) GetHasData ¶
func (*GEXT) GetRootPath ¶
func (*GEXT) GetStatus ¶
func (gext *GEXT) GetStatus() ResourceStatus
func (*GEXT) SetAction ¶
func (gext *GEXT) SetAction(s GEXTAction)
func (*GEXT) SetCacheReady ¶
func (*GEXT) SetHasData ¶
func (*GEXT) SetRootPath ¶
func (*GEXT) SetStatus ¶
func (gext *GEXT) SetStatus(s ResourceStatus)
type GEXTAction ¶
type GEXTAction string
const ( GEXTActionGet GEXTAction = "get" GEXTActionDelete GEXTAction = "delete" GEXTActionCreate GEXTAction = "create" GEXTActionUpdate GEXTAction = "Update" GEXTActionGetResourceName GEXTAction = "getresourcename" )
func (*GEXTAction) String ¶
func (c *GEXTAction) String() string
type ResourceStatus ¶
type ResourceStatus string
const ( ResourceStatusNone ResourceStatus = "none" ResourceStatusSuccess ResourceStatus = "success" ResourceStatusFailed ResourceStatus = "failed" ResourceStatusCreatePending ResourceStatus = "createpending" ResourceStatusUpdatePending ResourceStatus = "updatepending" ResourceStatusDeletePending ResourceStatus = "deletepending" )
func (*ResourceStatus) String ¶
func (c *ResourceStatus) String() string
Click to show internal directories.
Click to hide internal directories.