go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/resources/resources.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 package resources 5 6 //go:generate protoc --proto_path=. --go_out=. --go_opt=paths=source_relative resources.proto 7 8 // NotReadyError indicates the results are not ready to be processed further 9 type NotReadyError struct{} 10 11 func (n NotReadyError) Error() string { 12 return "NotReadyError" 13 } 14 15 type NotFoundError struct { 16 Resource string 17 ID string 18 } 19 20 func (n NotFoundError) Error() string { 21 return n.Resource + " '" + n.ID + "' not found" 22 } 23 24 type MissingUpstreamError struct{} 25 26 func (m MissingUpstreamError) Error() string { 27 return `To use this resource, you must authenticate with Mondoo Platform. 28 To learn how, read: 29 https://mondoo.com/docs/cnspec/cnspec-adv-install/registration/` 30 }