Documentation ¶
Index ¶
- type Api
- func (a Api) All(ctx context.Context) ([]v1.APIDefinitionSpec, error)
- func (a Api) Create(ctx context.Context, def *v1.APIDefinitionSpec) error
- func (a Api) Delete(ctx context.Context, id string) error
- func (a Api) Get(ctx context.Context, apiID string) (*v1.APIDefinitionSpec, error)
- func (a Api) Update(ctx context.Context, def *v1.APIDefinitionSpec) error
- type Client
- 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 Client ¶
type Client struct {
universal_client.Client
}
func (*Client) Api ¶
func (c *Client) Api() universal_client.UniversalApi
func (*Client) Certificate ¶
func (c *Client) Certificate() universal_client.UniversalCertificate
TODO: Certificate Requires implementation
func (*Client) SecurityPolicy ¶
func (c *Client) SecurityPolicy() universal_client.UniversalSecurityPolicy
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_client.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.