Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api interface { Create(ctx context.Context, def *model.APIDefinitionSpec) (*model.Result, error) Get(ctx context.Context, id string) (*model.APIDefinitionSpec, error) Update(ctx context.Context, spec *model.APIDefinitionSpec) (*model.Result, error) Delete(ctx context.Context, id string) (*model.Result, error) List(ctx context.Context, options ...model.ListAPIOptions) (*model.APIDefinitionSpecList, error) }
type Certificate ¶
type Configuration ¶
type Documentation ¶
type Policy ¶
type Policy interface { All(ctx context.Context) ([]v1alpha1.SecurityPolicySpec, error) // Get retruns the policy with the given id. Get(ctx context.Context, id string) (*v1alpha1.SecurityPolicySpec, error) // Create creates a new def and updates id and other fields. It is up to the // caller to update any fields that will be set after the policy has been // created for instance _id Create(ctx context.Context, def *v1alpha1.SecurityPolicySpec) error // Update this will update an existing policy Update(ctx context.Context, def *v1alpha1.SecurityPolicySpec) error //Delete deletes policy id id Delete(ctx context.Context, id string) error }
type Portal ¶
type Portal interface { Policy() Policy Documentation() Documentation Catalogue() Catalogue Configuration() Configuration }
Click to show internal directories.
Click to hide internal directories.