Documentation ¶
Overview ¶
Package istio contains components for managing Istio resources (Deniers, DenyRules, CheckNothings, ...)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChecknothingInterface ¶
type ChecknothingInterface interface { Create(*v1alpha2.Checknothing) (*v1alpha2.Checknothing, error) Delete(name string, options *v1.DeleteOptions) error }
ChecknothingInterface allows to perform operations for CheckNothings in kubernetes
type DenierInterface ¶
type DenierInterface interface { Create(*v1alpha2.Denier) (*v1alpha2.Denier, error) Delete(name string, options *v1.DeleteOptions) error }
DenierInterface allows to perform operations for Deniers in kubernetes
type Repository ¶
type Repository interface { // CreateDenier creates Denier CreateDenier(remoteEnvironment, serviceId, name string) apperrors.AppError // CreateCheckNothing creates CheckNothing CreateCheckNothing(remoteEnvironment, serviceId, name string) apperrors.AppError // CreateRule creates Rule CreateRule(remoteEnvironment, serviceId, name string) apperrors.AppError // UpserDenier creates or updates Denier UpsertDenier(remoteEnvironment, serviceId, name string) apperrors.AppError // UpsertCheckNothing creates or updates CheckNothing UpsertCheckNothing(remoteEnvironment, serviceId, name string) apperrors.AppError // UpsertRule creates or updates Rule UpsertRule(remoteEnvironment, serviceId, name string) apperrors.AppError // DeleteDenier deletes Denier DeleteDenier(name string) apperrors.AppError // DeleteCheckNothing deletes CheckNothing DeleteCheckNothing(name string) apperrors.AppError // DeleteRule deletes Rule DeleteRule(name string) apperrors.AppError }
Repository allows to perform various operations for Istio resources
func NewRepository ¶
func NewRepository(ruleInterface RuleInterface, checknothingInterface ChecknothingInterface, denierInterface DenierInterface, config RepositoryConfig) Repository
NewRepository creates new repository with provided interfaces
type RepositoryConfig ¶
type RepositoryConfig struct {
Namespace string
}
type RuleInterface ¶
type RuleInterface interface { Create(*v1alpha2.Rule) (*v1alpha2.Rule, error) Delete(name string, options *v1.DeleteOptions) error }
RuleInterface allows to perform operations for Rules in kubernetes
type Service ¶
type Service interface { // Create creates Istio resources associated with deniers. Create(remoteEnvironment, serviceId, resourceName string) apperrors.AppError // Upsert updates or creates Istio resources associated with deniers. Upsert(remoteEnvironment, serviceId, resourceName string) apperrors.AppError // Delete removes Istio resources associated with deniers. Delete(resourceName string) apperrors.AppError }
Service is responsible for creating Istio resources associated with deniers.
Directories ¶
Path | Synopsis |
---|---|
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 |
Click to show internal directories.
Click to hide internal directories.