 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func IsPluginNotConfiguredError(err error) bool
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type APIInterface
- type APIResponse
- type CertificateGetter
- type CertificateInterface
- type ConsumerGetter
- type ConsumerInterface
- type CredentialGetter
- type CredentialInterface
- type KongInterface
- type PluginGetter
- type PluginInterface
- type PluginNotConfiguredError
- type RestClient
- func (c *RestClient) Certificates() CertificateInterface
- func (c *RestClient) Consumers() ConsumerInterface
- func (c *RestClient) Credentials() CredentialInterface
- func (c *RestClient) GetVersion() (semver.Version, error)
- func (c *RestClient) Plugins() PluginInterface
- func (c *RestClient) RESTClient() rest.Interface
- func (c *RestClient) Routes() RouteInterface
- func (c *RestClient) SNIs() SNIInterface
- func (c *RestClient) Services() ServiceInterface
- func (c *RestClient) Targets() TargetInterface
- func (c *RestClient) Upstreams() UpstreamInterface
 
- type RouteGetter
- type RouteInterface
- type SNIGetter
- type SNIInterface
- type ServiceGetter
- type ServiceInterface
- type TargetGetter
- type TargetInterface
- type UpstreamGetter
- type UpstreamInterface
Constants ¶
      View Source
      
  
const GroupName = "konghq.com"
    Variables ¶
      View Source
      
  
    var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
      View Source
      
  
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
    Functions ¶
func IsPluginNotConfiguredError ¶
IsPluginNotConfiguredError checks if the type of the error is PluginNotConfiguredError
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type APIInterface ¶
type APIInterface interface {
	Get(string, interface{}) *APIResponse
	Create(interface{}, interface{}) *APIResponse
	Patch(string, interface{}, interface{}) *APIResponse
	Delete(string) error
	RestClient() rest.Interface
}
    type APIResponse ¶
APIResponse contains a response returned from the Kong admin API +k8s:deepcopy-gen=false
func (*APIResponse) Error ¶
func (r *APIResponse) Error() error
Error returns the error from the admin API response
func (*APIResponse) String ¶
func (r *APIResponse) String() string
type CertificateGetter ¶
type CertificateGetter interface {
	Certificate() CertificateInterface
}
    type CertificateInterface ¶
type CertificateInterface interface {
	List(url.Values) (*adminv1.CertificateList, error)
	Get(string) (*adminv1.Certificate, *APIResponse)
	Create(*adminv1.Certificate) (*adminv1.Certificate, *APIResponse)
	Patch(string, *adminv1.Certificate) (*adminv1.Certificate, *APIResponse)
	Delete(string) error
}
    type ConsumerGetter ¶
type ConsumerGetter interface {
	Consumers() ConsumerInterface
}
    type ConsumerInterface ¶
type CredentialGetter ¶
type CredentialGetter interface {
	Credentials() CredentialInterface
}
    type CredentialInterface ¶
type CredentialInterface interface {
	List(string, url.Values) (*adminv1.CredentialList, error)
	GetByType(string, string, string) (*adminv1.Credential, *APIResponse)
	CreateByType(map[string]interface{}, string, string) *APIResponse
}
    type KongInterface ¶
type KongInterface interface {
	RESTClient() rest.Interface
	RouteGetter
	ServiceGetter
	UpstreamGetter
	TargetGetter
	SNIGetter
	CertificateGetter
	PluginGetter
	CredentialGetter
}
    type PluginGetter ¶
type PluginGetter interface {
	Plugins() PluginInterface
}
    type PluginInterface ¶
type PluginInterface interface {
	List(url.Values) (*adminv1.PluginList, error)
	Get(string) (*adminv1.Plugin, *APIResponse)
	CreateInRoute(string, *adminv1.Plugin) (*adminv1.Plugin, *APIResponse)
	CreateInService(string, *adminv1.Plugin) (*adminv1.Plugin, *APIResponse)
	Patch(string, *adminv1.Plugin) (*adminv1.Plugin, *APIResponse)
	Delete(string) error
	GetByID(string) (*adminv1.Plugin, error)
	GetAllByRoute(string) ([]adminv1.Plugin, error)
	GetByRoute(string, string) (*adminv1.Plugin, error)
	GetAllByService(serviceID string) ([]adminv1.Plugin, error)
	GetByService(name, serviceID string) (*adminv1.Plugin, error)
	GetAllByServiceWitConsumer(serviceID string) ([]*adminv1.Plugin, error)
}
    type PluginNotConfiguredError ¶
type PluginNotConfiguredError struct {
	Message string
}
    PluginNotConfiguredError defines an
func (PluginNotConfiguredError) Error ¶
func (e PluginNotConfiguredError) Error() string
Error implements the Error interface.
type RestClient ¶
type RestClient struct {
	// contains filtered or unexported fields
}
    func NewRESTClient ¶
func NewRESTClient(c *rest.Config) (*RestClient, error)
func (*RestClient) Certificates ¶
func (c *RestClient) Certificates() CertificateInterface
func (*RestClient) Consumers ¶
func (c *RestClient) Consumers() ConsumerInterface
func (*RestClient) Credentials ¶
func (c *RestClient) Credentials() CredentialInterface
func (*RestClient) GetVersion ¶
func (c *RestClient) GetVersion() (semver.Version, error)
func (*RestClient) Plugins ¶
func (c *RestClient) Plugins() PluginInterface
func (*RestClient) RESTClient ¶
func (c *RestClient) RESTClient() rest.Interface
func (*RestClient) Routes ¶
func (c *RestClient) Routes() RouteInterface
func (*RestClient) SNIs ¶
func (c *RestClient) SNIs() SNIInterface
func (*RestClient) Services ¶
func (c *RestClient) Services() ServiceInterface
func (*RestClient) Targets ¶
func (c *RestClient) Targets() TargetInterface
func (*RestClient) Upstreams ¶
func (c *RestClient) Upstreams() UpstreamInterface
type RouteGetter ¶
type RouteGetter interface {
	Route() RouteInterface
}
    type RouteInterface ¶
type SNIGetter ¶
type SNIGetter interface {
	SNI() SNIInterface
}
    type SNIInterface ¶
type ServiceGetter ¶
type ServiceGetter interface {
	Service() ServiceInterface
}
    type ServiceInterface ¶
type TargetGetter ¶
type TargetGetter interface {
	Target() TargetInterface
}
    type TargetInterface ¶
type UpstreamGetter ¶
type UpstreamGetter interface {
	Upstreams() UpstreamInterface
}
    type UpstreamInterface ¶
       Source Files
      ¶
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.