Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + const Busy + const Cleaning + const Dirty + const Free + const Leased + const Other + const ToBeDeleted + const Tombstone + var KnownStates = []string + func GenerateDynamicResourceName() string + func ResourceTypeNotFoundMessage(rType string) string + func ValidateConfig(config *BoskosConfig) error + type BoskosConfig struct + Resources []ResourceEntry + func ParseConfig(configPath string) (*BoskosConfig, error) + type CommaSeparatedStrings []string + func (r *CommaSeparatedStrings) Set(value string) error + func (r *CommaSeparatedStrings) String() string + func (r *CommaSeparatedStrings) Type() string + type ConfigType struct + Content string + Type string + type DRLCByName []DynamicResourceLifeCycle + func (ut DRLCByName) Len() int + func (ut DRLCByName) Less(i, j int) bool + func (ut DRLCByName) Swap(i, j int) + type Duration struct + func (d *Duration) UnmarshalJSON(b []byte) error + type DynamicResourceLifeCycle struct + Config ConfigType + InitialState string + LifeSpan *time.Duration + MaxCount int + MinCount int + Needs ResourceNeeds + Type string + func NewDynamicResourceLifeCycleFromConfig(e ResourceEntry) DynamicResourceLifeCycle + type LeasedResources []string + type Metric struct + Current map[string]int + Owners map[string]int + Type string + func NewMetric(rtype string) Metric + type Resource struct + ExpirationDate *time.Time + LastUpdate time.Time + Name string + Owner string + State string + Type string + UserData *UserData + func NewResource(name, rtype, state, owner string, t time.Time) Resource + func NewResourcesFromConfig(e ResourceEntry) []Resource + type ResourceByName []Resource + func (ut ResourceByName) Len() int + func (ut ResourceByName) Less(i, j int) bool + func (ut ResourceByName) Swap(i, j int) + type ResourceEntry struct + Config ConfigType + LifeSpan *Duration + MaxCount int + MinCount int + Names []string + Needs ResourceNeeds + State string + Type string + func (re *ResourceEntry) IsDRLC() bool + type ResourceNeeds map[string]int + type TypeToResources map[string][]Resource + func (t TypeToResources) Copy() TypeToResources + type UserData struct + func UserDataFromMap(m UserDataMap) *UserData + func (ud *UserData) Extract(id string, out interface{}) error + func (ud *UserData) FromMap(m UserDataMap) + func (ud *UserData) MarshalJSON() ([]byte, error) + func (ud *UserData) Set(id string, in interface{}) error + func (ud *UserData) ToMap() UserDataMap + func (ud *UserData) UnmarshalJSON(data []byte) error + func (ud *UserData) Update(new *UserData) *UserData + type UserDataMap map[string]string + type UserDataNotFound struct + ID string + func (ud *UserDataNotFound) Error() string