Documentation
¶
Index ¶
- Constants
- Variables
- func AddDependences(l *c1ews.ListResponse, name ...string)
- func AddToTheList(l *c1ews.ListResponse, items []string)
- func Cleanup(l *c1ews.ListResponse)
- func ClearDependence(l *c1ews.ListResponse)
- func Equal(a, b *c1ews.ListResponse) bool
- func HasIncludes(l *c1ews.ListResponse) bool
- func Includes(l *c1ews.ListResponse) (result []string)
- func ListDependencies(l *c1ews.ListResponse) (result []string)
- func ListFromResponse(response *c1ews.ListResponse) *c1ews.List
- func RemoveDuplicates(names []string) (result []string)
- type Process
- func (p *Process) FindList(name string) *c1ews.ListResponse
- func (p *Process) FindListWithError(name string) (*c1ews.ListResponse, error)
- func (p *Process) GetAllItems(l *c1ews.ListResponse) error
- func (p *Process) GetAllItemsWithMap(l *c1ews.ListResponse, seen map[string]struct{}) error
- func (p *Process) IterateChanged(callback func(*c1ews.ListResponse) error) error
- func (p *Process) ListNotFoundError(name string) error
- func (p *Process) Process() error
Constants ¶
View Source
const (
DependencePrefix = "Do not delete this list! It is used to populate the following lists:"
)
Variables ¶
View Source
var ( ErrCycleDependence = errors.New("cycle dependence") ErrListNotFound = errors.New("not found") )
Functions ¶
func AddDependences ¶
func AddDependences(l *c1ews.ListResponse, name ...string)
AddDependences - add dependence line or modify one of it already exists
func AddToTheList ¶
func AddToTheList(l *c1ews.ListResponse, items []string)
AddToTheList - add items to the list avoiding duplicates and sort them
func ClearDependence ¶
func ClearDependence(l *c1ews.ListResponse)
ClearDependence - remove dependence lines from description if exist any
func Equal ¶
func Equal(a, b *c1ews.ListResponse) bool
Equal - return true if there is a difference between lists. We are checking only fileds that could be changed by TMList
func HasIncludes ¶
func HasIncludes(l *c1ews.ListResponse) bool
HasIncludes - return true if list has includes
func Includes ¶
func Includes(l *c1ews.ListResponse) (result []string)
Includes - list all includes of the list
func ListDependencies ¶
func ListDependencies(l *c1ews.ListResponse) (result []string)
ListDependencies - return all dependencies for given list
func ListFromResponse ¶
func ListFromResponse(response *c1ews.ListResponse) *c1ews.List
ListFromResponse - return List struct build from ListResponse struct
func RemoveDuplicates ¶
RemoveDuplicates - remove duplicates from string slice. Return in sorted order
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func NewProcess(in []c1ews.ListResponse) *Process
func (*Process) FindListWithError ¶ added in v0.5.0
func (p *Process) FindListWithError(name string) (*c1ews.ListResponse, error)
func (*Process) GetAllItems ¶
func (p *Process) GetAllItems(l *c1ews.ListResponse) error
func (*Process) GetAllItemsWithMap ¶
func (p *Process) GetAllItemsWithMap(l *c1ews.ListResponse, seen map[string]struct{}) error
func (*Process) IterateChanged ¶
func (p *Process) IterateChanged(callback func(*c1ews.ListResponse) error) error
func (*Process) ListNotFoundError ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.