MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / GetLogSource

Method GetLogSource

service/log/iml.go:178–184  ·  view source on GitHub ↗
(ctx context.Context, driver string)

Source from the content-addressed store, hash-verified

176}
177
178func (i *imlLogService) GetLogSource(ctx context.Context, driver string) (*Source, error) {
179 s, err := i.store.First(ctx, map[string]interface{}{"driver": driver})
180 if err != nil {
181 return nil, err
182 }
183 return FromEntity(s), nil
184}
185
186func (i *imlLogService) Logs(ctx context.Context, driver string, cluster string, conditions map[string]string, start time.Time, end time.Time, limit int64, offset int64) ([]*Item, int64, error) {
187 d, has := log_driver.GetDriver(driver)

Callers 1

OnCompleteMethod · 0.95

Calls 1

FromEntityFunction · 0.70

Tested by

no test coverage detected