MCPcopy Index your code
hub / github.com/rilldata/rill / GetInstanceAttributes

Method GetInstanceAttributes

runtime/runtime.go:131–138  ·  view source on GitHub ↗

GetInstanceAttributes fetches an instance and converts its annotations to attributes nil is returned if an error occurred or instance was not found

(ctx context.Context, instanceID string)

Source from the content-addressed store, hash-verified

129// GetInstanceAttributes fetches an instance and converts its annotations to attributes
130// nil is returned if an error occurred or instance was not found
131func (r *Runtime) GetInstanceAttributes(ctx context.Context, instanceID string) []attribute.KeyValue {
132 instance, err := r.Instance(ctx, instanceID)
133 if err != nil {
134 return nil
135 }
136
137 return instanceAnnotationsToAttribs(instance)
138}
139
140func (r *Runtime) UpdateInstanceWithRillYAML(ctx context.Context, instanceID string, p *parser.Parser, restartController bool) error {
141 if p.RillYAML == nil {

Callers 2

generateOpenAPISpecMethod · 0.80

Calls 2

InstanceMethod · 0.95

Tested by

no test coverage detected