Documentation
¶
Index ¶
- func FormatSectionName(driverGroupName, name string) string
- func IsSubsetSection(s string) bool
- func SubsetSectionToName(s string) string
- type DoFunc
- type L
- type ResourceLister
- type T
- func (t T) Do(ctx context.Context, l ResourceLister, barrier, desc string, fn DoFunc) (hasHitBarrier bool, err error)
- func (t T) Fullname() string
- func (t *T) Log() *plog.Logger
- func (t T) ReconfigureResource(r resource.Driver) error
- func (t T) Resources() resource.Drivers
- func (t *T) SetLogger(parent *plog.Logger)
- func (t T) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSectionName ¶
FormatSectionName returns the resourceset section name for a given driver group name and subset name.
func IsSubsetSection ¶
func SubsetSectionToName ¶
Types ¶
type L ¶
type L []*T
func (L) Do ¶
Do executes fn on every resourceset of the actor. The barrier can be hit on a resource delayed by a resource link (e.g. ip.cni depending on container.docker)
e.g.
with resourcesets [[ip#1 ip#2(netns=container#1) ip#3] [container#1 container#2]]
with barrier ip#2
with action start (i.e. ascending)
does:
hasHitBarrier fn executed on comment
------------- -------------- -------
rset[ip#1 ip#2(netns=container#1) ip#3].Do false ip#1 ip#3 ip#2 is skipped, depends on container#1
rset[container#1 container#2].Do true container#1 then ip#2 via linkWrap() => ErrBarrier
type ResourceLister ¶
type T ¶
type T struct {
Name string
SectionName string
DriverGroup driver.Group
Parallel bool
PG *pg.Config
ResourceLister ResourceLister
// contains filtered or unexported fields
}
func Generic ¶
Generic allocates and initializes a new resourceset for a given driver group, and return an error if this name is not valid.
func Parse ¶
Parse allocates and initializes new resourceset for a given name, and return an error if the name is not valid.
func (T) Resources ¶
Resources returns the list of resources handled by the resourceset. This function make the resourceset a ResourceLister.
Click to show internal directories.
Click to hide internal directories.