Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClusterAssetGroupModeSingle = "single" ClusterAssetGroupNameFormat = "%s-%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterAssetGroupRepository ¶
type ClusterAssetGroupRepository interface { Get(id string) (clusterassetgroup.Entry, apperrors.AppError) Upsert(documentationTopic clusterassetgroup.Entry) apperrors.AppError Delete(id string) apperrors.AppError }
func NewClusterAssetGroupRepository ¶
func NewClusterAssetGroupRepository(resourceInterface ResourceInterface) ClusterAssetGroupRepository
type ResourceInterface ¶
type ResourceInterface interface { Get(ctx context.Context, name string, opts metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions, subresources ...string) error Create(ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error) Update(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error) }
type Service ¶
type Service interface { Put(id string, apiType clusterassetgroup.ApiType, documentation, apiSpec, eventsSpec []byte) apperrors.AppError Get(id string) (documentation []byte, apiSpec []byte, eventsSpec []byte, apperr apperrors.AppError) Remove(id string) apperrors.AppError }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.