Versions in this module Expand all Collapse all v0 v0.0.2 Nov 3, 2023 Changes in this version + const KonnectManagedPluginTag + func BaseURL() string + func CreateConsumerGroup(ctx context.Context, client *kong.Client, entity interface{}) (*kong.ConsumerGroup, error) + func CreateConsumerGroupMember(ctx context.Context, client *kong.Client, cgID, consumer *string) error + func CreateRateLimitingAdvancedPlugin(ctx context.Context, client *kong.Client, cgID *string, ...) (*kong.ConsumerGroupRLA, error) + func DeleteConsumerGroup(ctx context.Context, client *kong.Client, cgID *string) error + func DeleteConsumerGroupMember(ctx context.Context, client *kong.Client, cgID, consumer *string) error + func DeleteRateLimitingAdvancedPlugin(ctx context.Context, client *kong.Client, cgID *string) error + func GetConsumerGroup(ctx context.Context, client *kong.Client, nameOrID *string) (*kong.ConsumerGroup, error) + func GetConsumerGroupObject(ctx context.Context, client *kong.Client, cgID *string) (*kong.ConsumerGroupObject, error) + func GetConsumerGroupRateLimitingAdvancedPlugin(ctx context.Context, client *kong.Client, cgID *string) (*kong.ConsumerGroupPlugin, error) + func IsNotFoundErr(e error) bool + func IsUnauthorizedErr(e error) bool + func ListAllConsumerGroupMembers(ctx context.Context, client *kong.Client, cgID *string) ([]*kong.Consumer, error) + func ListAllConsumerGroups(ctx context.Context, client *kong.Client, tags []*string) ([]*kong.ConsumerGroup, error) + func UpdateConsumerGroup(ctx context.Context, client *kong.Client, cgID *string, entity interface{}) (*kong.ConsumerGroup, error) + func UpdateConsumerGroupMember(ctx context.Context, client *kong.Client, cgID, consumer *string) error + func UpdateRateLimitingAdvancedPlugin(ctx context.Context, client *kong.Client, cgID *string, ...) (*kong.ConsumerGroupRLA, error) + type APIError struct + func (e *APIError) Code() int + func (e *APIError) Error() string + type AuthResponse struct + FirstName string + FullName string + LastName string + Name string + Organization string + OrganizationID string + type AuthService service + func (s *AuthService) Login(ctx context.Context, email, password string) (AuthResponse, error) + func (s *AuthService) LoginV2(ctx context.Context, email, password, token string) (AuthResponse, error) + func (s *AuthService) OrgUserInfo(ctx context.Context) (*OrgUserInfo, error) + type Client struct + Auth *AuthService + ControlPlaneRelations *ControlPlaneRelationsService + ControlPlanes *ControlPlaneService + Documents *DocumentService + RuntimeGroups *RuntimeGroupService + ServicePackages *ServicePackageService + ServiceVersions *ServiceVersionService + func NewClient(httpClient *http.Client, opts ClientOpts) (*Client, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewRequest(method, endpoint string, qs interface{}, body interface{}) (*http.Request, error) + func (c *Client) SetControlPlaneID(cpID string) + func (c *Client) SetDebugMode(enableDebug bool) + func (c *Client) SetLogger(w io.Writer) + func (c *Client) SetRuntimeGroupID(rgID string) + type ClientOpts struct + BaseURL string + type ControlPlane struct + ID *string + Type *ControlPlaneType + func (in *ControlPlane) DeepCopy() *ControlPlane + func (in *ControlPlane) DeepCopyInto(out *ControlPlane) + type ControlPlaneRelationsService service + func (s *ControlPlaneRelationsService) Create(ctx context.Context, relation *ControlPlaneServiceRelationCreateRequest) (*ControlPlaneServiceRelation, error) + func (s *ControlPlaneRelationsService) Delete(ctx context.Context, relationID *string) error + func (s *ControlPlaneRelationsService) List(ctx context.Context, opt *ListOpt) ([]*ControlPlaneServiceRelation, *ListOpt, error) + func (s *ControlPlaneRelationsService) ListAll(ctx context.Context) ([]*ControlPlaneServiceRelation, error) + func (s ControlPlaneRelationsService) Update(ctx context.Context, relation *ControlPlaneServiceRelationUpdateRequest) (*ServiceVersion, error) + type ControlPlaneService service + func (s *ControlPlaneService) List(ctx context.Context, opt *ListOpt) ([]ControlPlane, *ListOpt, error) + type ControlPlaneServiceRelation struct + ControlPlane *ControlPlane + ControlPlaneEntityID *string + ID *string + func (in *ControlPlaneServiceRelation) DeepCopy() *ControlPlaneServiceRelation + func (in *ControlPlaneServiceRelation) DeepCopyInto(out *ControlPlaneServiceRelation) + type ControlPlaneServiceRelationCreateRequest struct + ControlPlane string + ControlPlaneEntityID string + ServiceVersionID string + type ControlPlaneServiceRelationUpdateRequest struct + ID string + type ControlPlaneType struct + Name *string + func (in *ControlPlaneType) DeepCopy() *ControlPlaneType + func (in *ControlPlaneType) DeepCopyInto(out *ControlPlaneType) + type Document struct + Content *string + ID *string + Parent ParentInfoer + Path *string + Published *bool + func (d *Document) ParentKey() string + func (d *Document) ShallowCopy() *Document + func (d *Document) ShallowCopyInto(out *Document) + type DocumentService service + func (d *DocumentService) Create(ctx context.Context, doc *Document) (*Document, error) + func (d *DocumentService) Delete(ctx context.Context, doc *Document) error + func (d *DocumentService) ListAllForParent(ctx context.Context, parent ParentInfoer) ([]*Document, error) + func (d *DocumentService) Update(ctx context.Context, doc *Document) (*Document, error) + type KonnectListOpt struct + Page *PageOpt + Tags []*string + func ListConsumerGroupMembers(ctx context.Context, client *kong.Client, endpoint string, opt *KonnectListOpt) ([]*kong.Consumer, *KonnectListOpt, error) + func ListConsumerGroups(ctx context.Context, client *kong.Client, opt *KonnectListOpt) ([]*kong.ConsumerGroup, *KonnectListOpt, error) + type ListOpt struct + Page int + Size int + type OrgUserInfo struct + Name string + OrgID string + type PageOpt struct + NextPageNum *int + Number *int + Size int + TotalCount *int + type ParentInfoer interface + Key func() string + URL func() string + type RLAOverride struct + ID *string + Value kong.Configuration + type RuntimeGroup struct + ID *string + Name *string + func (in *RuntimeGroup) DeepCopy() *RuntimeGroup + func (in *RuntimeGroup) DeepCopyInto(out *RuntimeGroup) + type RuntimeGroupService service + func (s *RuntimeGroupService) List(ctx context.Context, opt *ListOpt) ([]*RuntimeGroup, *ListOpt, error) + type ServicePackage struct + Description *string + ID *string + Name *string + Versions []ServiceVersion + func (in *ServicePackage) DeepCopy() *ServicePackage + func (in *ServicePackage) DeepCopyInto(out *ServicePackage) + func (p *ServicePackage) Key() string + func (p *ServicePackage) URL() string + type ServicePackageService service + func (s *ServicePackageService) Create(ctx context.Context, sp *ServicePackage) (*ServicePackage, error) + func (s *ServicePackageService) Delete(ctx context.Context, id *string) error + func (s *ServicePackageService) List(ctx context.Context, opt *ListOpt) ([]*ServicePackage, *ListOpt, error) + func (s *ServicePackageService) ListAll(ctx context.Context) ([]*ServicePackage, error) + func (s *ServicePackageService) Update(ctx context.Context, sp *ServicePackage) (*ServicePackage, error) + type ServiceVersion struct + ControlPlaneServiceRelation *ControlPlaneServiceRelation + ID *string + ServicePackage *ServicePackage + Version *string + func (in *ServiceVersion) DeepCopy() *ServiceVersion + func (in *ServiceVersion) DeepCopyInto(out *ServiceVersion) + func (v *ServiceVersion) Key() string + func (v *ServiceVersion) URL() string + type ServiceVersionService service + func (s *ServiceVersionService) Create(ctx context.Context, sv *ServiceVersion) (*ServiceVersion, error) + func (s *ServiceVersionService) Delete(ctx context.Context, id *string) error + func (s *ServiceVersionService) ListForPackage(ctx context.Context, servicePackageID *string) ([]ServiceVersion, error) + func (s *ServiceVersionService) Update(ctx context.Context, sv *ServiceVersion) (*ServiceVersion, error)