Documentation ¶
Index ¶
- Constants
- type Api
- func (a Api) Create(ctx context.Context, def *model.APIDefinitionSpec) (*model.Result, error)
- func (a Api) Delete(ctx context.Context, id string) (*model.Result, error)
- func (a Api) Get(ctx context.Context, id string) (*model.APIDefinitionSpec, error)
- func (Api) List(ctx context.Context, options ...model.ListAPIOptions) (*model.APIDefinitionSpecList, error)
- func (a Api) Update(ctx context.Context, spec *model.APIDefinitionSpec) (*model.Result, error)
- type ApisResponse
- type Catalogue
- type Cert
- type CertErrorResponse
- type CertResponse
- type CertificateList
- type Client
- type DashboardApi
- type Documentation
- type PoliciesResponse
- type Portal
- type ResponseMsg
- type SecurityPolicy
- func (p SecurityPolicy) All(ctx context.Context) ([]v1.SecurityPolicySpec, error)
- func (p SecurityPolicy) Create(ctx context.Context, def *v1.SecurityPolicySpec) error
- func (p SecurityPolicy) Delete(ctx context.Context, id string) error
- func (p SecurityPolicy) Get(ctx context.Context, id string) (*v1.SecurityPolicySpec, error)
- func (p SecurityPolicy) Update(ctx context.Context, def *v1.SecurityPolicySpec) error
Constants ¶
View Source
const ( XAuthorization = "authorization" XContentType = "content-type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct{}
func (Api) List ¶
func (Api) List( ctx context.Context, options ...model.ListAPIOptions, ) (*model.APIDefinitionSpecList, error)
List list all apis in the dashboard. options controls filtering and sorting
type ApisResponse ¶
type ApisResponse struct { Apis []DashboardApi `json:"apis"` Pages int `json:"pages"` }
type CertErrorResponse ¶
type CertResponse ¶
type CertificateList ¶
type Client ¶
type Client struct{}
func (Client) Certificate ¶
func (c Client) Certificate() universal.Certificate
type DashboardApi ¶
type DashboardApi struct { CreatedAt string `json:"created_at,omitempty"` ApiDefinition model.APIDefinitionSpec `json:"api_definition"` }
type Documentation ¶
type Documentation struct{}
func (Documentation) Upload ¶
func (Documentation) Upload( ctx context.Context, o *model.APIDocumentation, ) (*model.Result, error)
type PoliciesResponse ¶
type PoliciesResponse struct { Policies []v1.SecurityPolicySpec `json:"data"` Pages int `json:"pages"` }
type Portal ¶
type Portal struct{}
func (Portal) Documentation ¶
func (Portal) Documentation() universal.Documentation
type ResponseMsg ¶
type SecurityPolicy ¶
type SecurityPolicy struct{}
func (SecurityPolicy) All ¶
func (p SecurityPolicy) All(ctx context.Context) ([]v1.SecurityPolicySpec, error)
All Returns all policies from the Dashboard
func (SecurityPolicy) Create ¶
func (p SecurityPolicy) Create(ctx context.Context, def *v1.SecurityPolicySpec) error
Create creates a new policy using the def object
func (SecurityPolicy) Delete ¶
func (p SecurityPolicy) Delete(ctx context.Context, id string) error
Delete deletes the resource by ID
func (SecurityPolicy) Get ¶
func (p SecurityPolicy) Get(ctx context.Context, id string) (*v1.SecurityPolicySpec, error)
Get find the Policy by id
func (SecurityPolicy) Update ¶
func (p SecurityPolicy) Update(ctx context.Context, def *v1.SecurityPolicySpec) error
Update updates a resource object def
Click to show internal directories.
Click to hide internal directories.