Documentation ¶
Index ¶
- 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, apiID string) (*model.APIDefinitionSpec, error)
- func (a Api) List(ctx context.Context, options ...model.ListAPIOptions) (*model.APIDefinitionSpecList, error)
- func (a Api) Update(ctx context.Context, def *model.APIDefinitionSpec) (*model.Result, error)
- type Catalogue
- type Cert
- type CertResponse
- type CertificateList
- type Client
- type Configuration
- type Documentation
- type Portal
- type ResponseMsg
- type SecurityPolicy
- func (a SecurityPolicy) All(ctx context.Context) ([]v1.SecurityPolicySpec, error)
- func (a SecurityPolicy) Create(ctx context.Context, def *v1.SecurityPolicySpec) error
- func (a SecurityPolicy) Delete(ctx context.Context, namespacedName string) error
- func (a SecurityPolicy) Get(ctx context.Context, namespacedName string) (*v1.SecurityPolicySpec, error)
- func (a SecurityPolicy) Update(ctx context.Context, def *v1.SecurityPolicySpec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct{}
func (Api) List ¶
func (a Api) List(ctx context.Context, options ...model.ListAPIOptions) (*model.APIDefinitionSpecList, error)
type Cert ¶ added in v0.11.0
type Cert struct{}
type CertResponse ¶ added in v0.11.0
type CertificateList ¶ added in v0.11.0
type CertificateList struct {
CertIDs []string `json:"certs"`
}
type Client ¶
type Client struct{}
func (Client) Certificate ¶
func (c Client) Certificate() universal.Certificate
type Configuration ¶
type Configuration struct{}
func (Configuration) Create ¶
func (Configuration) Create( ctx context.Context, o *model.PortalModelPortalConfig, ) (*model.Result, error)
func (Configuration) Get ¶
func (Configuration) Get(ctx context.Context) (*model.PortalModelPortalConfig, error)
func (Configuration) Update ¶
func (Configuration) Update( ctx context.Context, o *model.PortalModelPortalConfig, ) (*model.Result, error)
type Documentation ¶
type Documentation struct{}
func (Documentation) Upload ¶
func (Documentation) Upload( ctx context.Context, o *model.APIDocumentation, ) (*model.Result, error)
type Portal ¶
type Portal struct{}
func (Portal) Configuration ¶
func (Portal) Configuration() universal.Configuration
func (Portal) Documentation ¶
func (Portal) Documentation() universal.Documentation
type ResponseMsg ¶
type SecurityPolicy ¶
type SecurityPolicy struct{}
SecurityPolicy provides api for accessing policies on the tyk gateway NOTE: The gateway doesn't provide api for security policy so this is just a placeholder and does nothing except returning universal.ErrTODO on all methods.
func (SecurityPolicy) All ¶
func (a SecurityPolicy) All(ctx context.Context) ([]v1.SecurityPolicySpec, error)
func (SecurityPolicy) Create ¶
func (a SecurityPolicy) Create(ctx context.Context, def *v1.SecurityPolicySpec) error
func (SecurityPolicy) Delete ¶
func (a SecurityPolicy) Delete(ctx context.Context, namespacedName string) error
func (SecurityPolicy) Get ¶
func (a SecurityPolicy) Get(ctx context.Context, namespacedName string) (*v1.SecurityPolicySpec, error)
func (SecurityPolicy) Update ¶
func (a SecurityPolicy) Update(ctx context.Context, def *v1.SecurityPolicySpec) error
Click to show internal directories.
Click to hide internal directories.