Documentation ¶
Index ¶
- Variables
- type KubeOpts
- type Resolver
- func (r *Resolver) Cluster() generated.ClusterResolver
- func (r *Resolver) ClusterAddon() generated.ClusterAddonResolver
- func (r *Resolver) GetMetric(ctx context.Context, promQL string) ([]model.MetricValue, error)
- func (r *Resolver) GetMetrics(ctx context.Context, tenant, cluster string) ([]model.Metric, error)
- func (r *Resolver) HasClusterAccess(ctx context.Context, req any, next graphql.Resolver, write bool) (res any, err error)
- func (r *Resolver) HasRole(ctx context.Context, _ any, next graphql.Resolver, role model.Role) (any, error)
- func (r *Resolver) HasTenantAccess(ctx context.Context, req any, next graphql.Resolver, write bool) (res any, err error)
- func (r *Resolver) Mutation() generated.MutationResolver
- func (r *Resolver) Query() generated.QueryResolver
- func (r *Resolver) Tenant() generated.TenantResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = errors.New("forbidden") ErrTenantNotReady = errors.New("tenant is not ready") )
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
func NewResolver ¶
func (*Resolver) Cluster ¶
func (r *Resolver) Cluster() generated.ClusterResolver
Cluster returns generated.ClusterResolver implementation.
func (*Resolver) ClusterAddon ¶
func (r *Resolver) ClusterAddon() generated.ClusterAddonResolver
ClusterAddon returns generated.ClusterAddonResolver implementation.
func (*Resolver) GetMetrics ¶
func (*Resolver) HasClusterAccess ¶
func (*Resolver) HasTenantAccess ¶
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
func (*Resolver) Tenant ¶
func (r *Resolver) Tenant() generated.TenantResolver
Tenant returns generated.TenantResolver implementation.
Click to show internal directories.
Click to hide internal directories.