Documentation
¶
Index ¶
- func EnsureIndexes(ctx context.Context, db *mongo.Database) error
- func GetDatabaseConnection() *mongo.Database
- type Catalog
- func (e *Catalog) CreateUpdateCatalog(ctx context.Context, i *v1alpha1.CreateUpdateCatalogRequest) (*v1alpha1.CreateUpdateCatalogResponse, error)
- func (e *Catalog) DeleteCatalog(ctx context.Context, i *v1alpha1.DeleteCatalogRequest) (*v1alpha1.DeleteCatalogResponse, error)
- func (e *Catalog) GetCatalog(ctx context.Context, i *v1alpha1.GetCatalogRequest) (*v1alpha1.GetCatalogResponse, error)
- func (e *Catalog) GetVersionCompliance(ctx context.Context, i *v1alpha1.GetVersionComplianceRequest) (*v1alpha1.GetVersionComplianceResponse, error)
- func (e *Catalog) ListCatalogs(ctx context.Context, i *v1alpha1.ListCatalogsRequest) (*v1alpha1.ListCatalogsResponse, error)
- func (e *Catalog) UpdateDependencies(ctx context.Context, i *v1alpha1.UpdateDependenciesRequest) (*v1alpha1.UpdateDependenciesResponse, error)
- func (e *Catalog) UpdateVersions(ctx context.Context, i *v1alpha1.UpdateVersionsRequest) (*v1alpha1.UpdateVersionsResponse, error)
- type Event
- func (e *Event) AddChangelogEntry(ctx context.Context, i *v1alpha1.AddChangelogEntryRequest) (*v1alpha1.AddChangelogEntryResponse, error)
- func (e *Event) AddSlackId(ctx context.Context, i *v1alpha1.AddSlackIdRequest) (*v1alpha1.AddSlackIdResponse, error)
- func (e *Event) CreateEvent(ctx context.Context, i *v1alpha1.CreateEventRequest) (*v1alpha1.CreateEventResponse, error)
- func (e *Event) DeleteEvent(ctx context.Context, i *v1alpha1.DeleteEventRequest) (*v1alpha1.DeleteEventResponse, error)
- func (e *Event) GetEvent(ctx context.Context, i *v1alpha1.GetEventRequest) (*v1alpha1.GetEventResponse, error)
- func (e *Event) GetEventChangelog(ctx context.Context, i *v1alpha1.GetEventChangelogRequest) (*v1alpha1.GetEventChangelogResponse, error)
- func (e *Event) ListEvents(ctx context.Context, i *v1alpha1.ListEventsRequest) (*v1alpha1.ListEventsResponse, error)
- func (e *Event) SearchEvents(ctx context.Context, i *v1alpha1.SearchEventsRequest) (*v1alpha1.SearchEventsResponse, error)
- func (e *Event) TodayEvents(ctx context.Context, i *v1alpha1.TodayEventsRequest) (*v1alpha1.TodayEventsResponse, error)
- func (e *Event) UpdateEvent(ctx context.Context, i *v1alpha1.UpdateEventRequest) (*v1alpha1.UpdateEventResponse, error)
- type Lock
- func (e *Lock) CreateLock(ctx context.Context, i *v1alpha1.CreateLockRequest) (*v1alpha1.CreateLockResponse, error)
- func (e *Lock) GetLock(ctx context.Context, i *v1alpha1.GetLockRequest) (*v1alpha1.GetLockResponse, error)
- func (e *Lock) ListLocks(ctx context.Context, i *v1alpha1.ListLocksRequest) (*v1alpha1.ListLocksResponse, error)
- func (e *Lock) UnLock(ctx context.Context, i *v1alpha1.UnLockRequest) (*v1alpha1.UnLockResponse, error)
- func (e *Lock) UnlockByEventId(ctx context.Context, eventId string) error
- func (e *Lock) UpdateLock(ctx context.Context, i *v1alpha1.UpdateLockRequest) (*v1alpha1.UpdateLockResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureIndexes ¶ added in v0.9.0
EnsureIndexes initialise tous les index nécessaires pour les collections MongoDB
func GetDatabaseConnection ¶ added in v0.9.0
GetDatabaseConnection retourne la connexion à la base de données MongoDB
Types ¶
type Catalog ¶ added in v0.4.0
type Catalog struct {
v1alpha1.UnimplementedCatalogServiceServer
// contains filtered or unexported fields
}
func NewCatalog ¶ added in v0.4.0
func NewCatalog() *Catalog
func (*Catalog) CreateUpdateCatalog ¶ added in v0.4.0
func (e *Catalog) CreateUpdateCatalog( ctx context.Context, i *v1alpha1.CreateUpdateCatalogRequest, ) (*v1alpha1.CreateUpdateCatalogResponse, error)
func (*Catalog) DeleteCatalog ¶ added in v0.4.0
func (e *Catalog) DeleteCatalog( ctx context.Context, i *v1alpha1.DeleteCatalogRequest, ) (*v1alpha1.DeleteCatalogResponse, error)
func (*Catalog) GetCatalog ¶ added in v0.4.0
func (e *Catalog) GetCatalog( ctx context.Context, i *v1alpha1.GetCatalogRequest, ) (*v1alpha1.GetCatalogResponse, error)
func (*Catalog) GetVersionCompliance ¶ added in v0.12.0
func (e *Catalog) GetVersionCompliance( ctx context.Context, i *v1alpha1.GetVersionComplianceRequest, ) (*v1alpha1.GetVersionComplianceResponse, error)
func (*Catalog) ListCatalogs ¶ added in v0.4.0
func (e *Catalog) ListCatalogs( ctx context.Context, i *v1alpha1.ListCatalogsRequest, ) (*v1alpha1.ListCatalogsResponse, error)
func (*Catalog) UpdateDependencies ¶ added in v0.13.0
func (e *Catalog) UpdateDependencies( ctx context.Context, i *v1alpha1.UpdateDependenciesRequest, ) (*v1alpha1.UpdateDependenciesResponse, error)
func (*Catalog) UpdateVersions ¶ added in v0.12.0
func (e *Catalog) UpdateVersions( ctx context.Context, i *v1alpha1.UpdateVersionsRequest, ) (*v1alpha1.UpdateVersionsResponse, error)
type Event ¶
type Event struct {
v1alpha1.UnimplementedEventServiceServer
// contains filtered or unexported fields
}
func (*Event) AddChangelogEntry ¶ added in v0.12.0
func (e *Event) AddChangelogEntry( ctx context.Context, i *v1alpha1.AddChangelogEntryRequest, ) (*v1alpha1.AddChangelogEntryResponse, error)
func (*Event) AddSlackId ¶ added in v0.13.0
func (e *Event) AddSlackId( ctx context.Context, i *v1alpha1.AddSlackIdRequest, ) (*v1alpha1.AddSlackIdResponse, error)
func (*Event) CreateEvent ¶
func (e *Event) CreateEvent( ctx context.Context, i *v1alpha1.CreateEventRequest, ) (*v1alpha1.CreateEventResponse, error)
func (*Event) DeleteEvent ¶ added in v0.3.0
func (e *Event) DeleteEvent( ctx context.Context, i *v1alpha1.DeleteEventRequest, ) (*v1alpha1.DeleteEventResponse, error)
func (*Event) GetEvent ¶
func (e *Event) GetEvent( ctx context.Context, i *v1alpha1.GetEventRequest, ) (*v1alpha1.GetEventResponse, error)
func (*Event) GetEventChangelog ¶ added in v0.12.0
func (e *Event) GetEventChangelog( ctx context.Context, i *v1alpha1.GetEventChangelogRequest, ) (*v1alpha1.GetEventChangelogResponse, error)
func (*Event) ListEvents ¶
func (e *Event) ListEvents( ctx context.Context, i *v1alpha1.ListEventsRequest, ) (*v1alpha1.ListEventsResponse, error)
func (*Event) SearchEvents ¶
func (e *Event) SearchEvents( ctx context.Context, i *v1alpha1.SearchEventsRequest, ) (*v1alpha1.SearchEventsResponse, error)
func (*Event) TodayEvents ¶ added in v0.5.0
func (e *Event) TodayEvents( ctx context.Context, i *v1alpha1.TodayEventsRequest, ) (*v1alpha1.TodayEventsResponse, error)
func (*Event) UpdateEvent ¶ added in v0.3.0
func (e *Event) UpdateEvent( ctx context.Context, i *v1alpha1.UpdateEventRequest, ) (*v1alpha1.UpdateEventResponse, error)
type Lock ¶
type Lock struct {
v1alpha1.UnimplementedLockServiceServer
// contains filtered or unexported fields
}
func (*Lock) CreateLock ¶
func (e *Lock) CreateLock( ctx context.Context, i *v1alpha1.CreateLockRequest, ) (*v1alpha1.CreateLockResponse, error)
func (*Lock) GetLock ¶
func (e *Lock) GetLock( ctx context.Context, i *v1alpha1.GetLockRequest, ) (*v1alpha1.GetLockResponse, error)
func (*Lock) ListLocks ¶
func (e *Lock) ListLocks( ctx context.Context, i *v1alpha1.ListLocksRequest, ) (*v1alpha1.ListLocksResponse, error)
func (*Lock) UnLock ¶
func (e *Lock) UnLock( ctx context.Context, i *v1alpha1.UnLockRequest, ) (*v1alpha1.UnLockResponse, error)
func (*Lock) UnlockByEventId ¶ added in v0.10.0
UnlockByEventId libère un lock associé à un event_id
func (*Lock) UpdateLock ¶ added in v0.12.0
func (e *Lock) UpdateLock( ctx context.Context, i *v1alpha1.UpdateLockRequest, ) (*v1alpha1.UpdateLockResponse, error)
Click to show internal directories.
Click to hide internal directories.