Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpsertWithProjectCreation ¶ added in v0.55.0
func UpsertWithProjectCreation(apiClient api.ClientInterface, kind modelV1.Kind, project string, entity modelAPI.Entity, createProject bool) error
UpsertWithProjectCreation behaves like Upsert, except that, when createProject is true and the upsert fails because the target project doesn't exist, it will create the project and retry the upsert once.
Types ¶
type Service ¶
type Service interface {
CreateResource(entity modelAPI.Entity) (modelAPI.Entity, error)
UpdateResource(entity modelAPI.Entity) (modelAPI.Entity, error)
ListResource(prefix string) ([]modelAPI.Entity, error)
GetResource(name string) (modelAPI.Entity, error)
DeleteResource(name string) error
BuildMatrix(hits []modelAPI.Entity) [][]string
GetColumHeader() []string
}
Click to show internal directories.
Click to hide internal directories.