Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyOptions ¶
type ApplyReport ¶
type ApplyReport struct {
Results []ApplyResult
Failed int
}
type ApplyResult ¶
type FetchFailure ¶
FetchFailure describes a single resource that could not be fetched.
NotFound is true when the underlying error was an HTTP 404, meaning an optional resource is simply absent rather than genuinely broken — for example authorization resources/scopes on a client that does not have authorization services enabled, or organizations on a realm where the feature is disabled. The command layer aggregates these separately from real failures so the output distinguishes "absent" from "broken".
Resource is the resource type (e.g. "scope", "organization") and is used as the aggregation key. Detail carries additional context such as the parent identifier or realm.
func (FetchFailure) String ¶
func (f FetchFailure) String() string
type FetchQuery ¶
type FetchReport ¶
type FetchReport struct {
Resources []manifest.Resource
Relationships []manifest.RelationshipOperation
Failures []FetchFailure
}
type Service ¶
type Service interface {
Spec() *catalog.Spec
Fetch(ctx context.Context, query FetchQuery) (FetchReport, error)
Apply(ctx context.Context, resources []manifest.Resource, relationships []manifest.RelationshipOperation, options ApplyOptions) (ApplyReport, error)
}
Service is the public admin API used by command handlers.