Documentation ¶
Index ¶
- func NewInformer(client *Client, interval, maxInterval, resyncInterval time.Duration, ...) cache.SharedIndexInformer
- type Bug
- type BugComment
- type BugCommentInfo
- type BugComments
- type BugCommentsList
- type BugInfo
- type BugInfoList
- type BugList
- type BugLister
- type Client
- type ClientError
- type CommentAccessor
- type CommentDiskStore
- func (s *CommentDiskStore) CloseBug(bug *BugComments) error
- func (s *CommentDiskStore) DeleteBug(bug *Bug) error
- func (s *CommentDiskStore) NotifyChanged(id int)
- func (s *CommentDiskStore) Run(ctx context.Context, lister *BugLister, store CommentAccessor, ...)
- func (s *CommentDiskStore) Sync(keys []string) ([]*BugComments, error)
- type CommentStore
- type Error
- type IDString
- type ListWatcher
- type PersistentCommentStore
- type SearchBugsArgs
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInformer ¶
func NewInformer(client *Client, interval, maxInterval, resyncInterval time.Duration, argsFn func(metav1.ListOptions) SearchBugsArgs, includeFn func(*BugInfo) bool) cache.SharedIndexInformer
Types ¶
type Bug ¶
type Bug struct { metav1.TypeMeta metav1.ObjectMeta Info BugInfo }
func (Bug) DeepCopyObject ¶
type BugComment ¶
type BugCommentInfo ¶
type BugCommentInfo struct {
Comments []BugComment `json:"comments"`
}
type BugComments ¶
type BugComments struct { metav1.TypeMeta metav1.ObjectMeta Info BugInfo RefreshTime time.Time Comments []BugComment }
func NewBugComments ¶
func NewBugComments(id int, info *BugCommentInfo) *BugComments
func ReadBugComments ¶
func ReadBugComments(path string) (*BugComments, error)
func (BugComments) DeepCopyObject ¶
func (b BugComments) DeepCopyObject() runtime.Object
type BugCommentsList ¶
type BugCommentsList struct {
Bugs map[IDString]BugCommentInfo `json:"bugs"`
}
type BugInfo ¶
type BugInfo struct { ID int `json:"id"` Status string `json:"status"` Resolution string `json:"resolution"` Severity string `json:"severity"` Priority string `json:"priority"` Summary string `json:"summary"` Keywords []string `json:"keywords"` Whiteboard string `json:"whiteboard"` InternalWhiteboard string `json:"cf_internal_whiteboard"` Creator string `json:"creator"` Component []string `json:"component"` AssignedTo string `json:"assigned_to"` CreationTime metav1.Time `json:"creation_time"` LastChangeTime metav1.Time `json:"last_change_time"` Environment string `json:"cf_environment"` TargetRelease []string `json:"target_release"` Version []string `json:"version"` }
type BugInfoList ¶
type BugInfoList struct { Bugs []BugInfo `json:"bugs"` Faults []interface{} `json:"faults"` }
type BugList ¶
func NewBugList ¶
func NewBugList(bugs *BugInfoList, includeFn func(*BugInfo) bool) *BugList
func (*BugList) DeepCopyObject ¶
type BugLister ¶
type BugLister struct {
// contains filtered or unexported fields
}
func NewBugLister ¶
NewBugLister lists bugs out of a cache.
type Client ¶
func (*Client) BugCommentsByID ¶
func (*Client) SearchBugs ¶
func (c *Client) SearchBugs(ctx context.Context, args SearchBugsArgs) (*BugInfoList, error)
type ClientError ¶
type ClientError struct {
Err Error
}
func (*ClientError) Error ¶
func (e *ClientError) Error() string
type CommentAccessor ¶
type CommentAccessor interface {
Get(id int) (*BugComments, bool)
}
type CommentDiskStore ¶
type CommentDiskStore struct {
// contains filtered or unexported fields
}
func NewCommentDiskStore ¶
func NewCommentDiskStore(path string, maxAge time.Duration) *CommentDiskStore
func (*CommentDiskStore) CloseBug ¶
func (s *CommentDiskStore) CloseBug(bug *BugComments) error
func (*CommentDiskStore) DeleteBug ¶
func (s *CommentDiskStore) DeleteBug(bug *Bug) error
func (*CommentDiskStore) NotifyChanged ¶
func (s *CommentDiskStore) NotifyChanged(id int)
func (*CommentDiskStore) Run ¶
func (s *CommentDiskStore) Run(ctx context.Context, lister *BugLister, store CommentAccessor, disableWrite bool)
func (*CommentDiskStore) Sync ¶
func (s *CommentDiskStore) Sync(keys []string) ([]*BugComments, error)
type CommentStore ¶
type CommentStore struct {
// contains filtered or unexported fields
}
func NewCommentStore ¶
func NewCommentStore(client *Client, refreshInterval time.Duration, includePrivate bool, persisted PersistentCommentStore) *CommentStore
func (*CommentStore) Get ¶
func (s *CommentStore) Get(id int) (*BugComments, bool)
func (*CommentStore) Run ¶
func (s *CommentStore) Run(ctx context.Context, informer cache.SharedInformer) error
func (*CommentStore) Stats ¶
func (s *CommentStore) Stats() Stats
type ListWatcher ¶
type ListWatcher struct {
// contains filtered or unexported fields
}
func (*ListWatcher) List ¶
func (lw *ListWatcher) List(options metav1.ListOptions) (runtime.Object, error)
func (*ListWatcher) Watch ¶
func (lw *ListWatcher) Watch(options metav1.ListOptions) (watch.Interface, error)
type PersistentCommentStore ¶
type PersistentCommentStore interface { Sync(keys []string) ([]*BugComments, error) NotifyChanged(id int) DeleteBug(*Bug) error CloseBug(*BugComments) error }
Click to show internal directories.
Click to hide internal directories.