Documentation ¶
Index ¶
Constants ¶
View Source
const ( DocsTopicModeSingle = "single" DocsTopicNameFormat = "%s-%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocsTopicRepository ¶
type DocsTopicRepository interface { Get(id string) (docstopic.Entry, apperrors.AppError) Upsert(documentationTopic docstopic.Entry) apperrors.AppError Delete(id string) apperrors.AppError }
func NewDocsTopicRepository ¶
func NewDocsTopicRepository(resourceInterface ResourceInterface) DocsTopicRepository
type ResourceInterface ¶
type ResourceInterface interface { Get(name string, opts metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error) Delete(name string, opts *metav1.DeleteOptions, subresources ...string) error Create(obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error) Update(obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error) }
type Service ¶
type Service interface { Put(id string, apiType docstopic.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.