Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTraitNotFound = errors.New("trait not found") ErrTraitAlreadyExists = errors.New("trait already exists") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
CreateTrait(ctx context.Context, namespaceName string, t *openchoreov1alpha1.Trait) (*openchoreov1alpha1.Trait, error)
UpdateTrait(ctx context.Context, namespaceName string, t *openchoreov1alpha1.Trait) (*openchoreov1alpha1.Trait, error)
ListTraits(ctx context.Context, namespaceName string, opts services.ListOptions) (*services.ListResult[openchoreov1alpha1.Trait], error)
GetTrait(ctx context.Context, namespaceName, traitName string) (*openchoreov1alpha1.Trait, error)
DeleteTrait(ctx context.Context, namespaceName, traitName string) error
GetTraitSchema(ctx context.Context, namespaceName, traitName string) (map[string]any, error)
}
Service defines the trait service interface.
func NewService ¶
NewService creates a new trait service without authorization.
Click to show internal directories.
Click to hide internal directories.