Documentation
¶
Overview ¶
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( ADD = "ADD" UPDATE = "UPDATE" DELETE = "DELETE" WatchFromKind = "watch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api6Controller ¶
type Api6Controller struct {
KubeClientSet kubernetes.Interface
Api6ClientSet clientset.Interface
Stop <-chan struct{}
}
func (*Api6Controller) ApisixRoute ¶
func (api6 *Api6Controller) ApisixRoute(controller *Controller)
func (*Api6Controller) ApisixService ¶
func (api6 *Api6Controller) ApisixService(controller *Controller)
func (*Api6Controller) ApisixTLS ¶
func (api6 *Api6Controller) ApisixTLS(controller *Controller)
func (*Api6Controller) ApisixUpstream ¶
func (api6 *Api6Controller) ApisixUpstream(controller *Controller)
type ApisixRouteController ¶
type ApisixRouteController struct {
// contains filtered or unexported fields
}
func BuildApisixRouteController ¶
func BuildApisixRouteController( kubeclientset kubernetes.Interface, api6RouteClientset clientset.Interface, api6RouteInformer apisixinformers.ApisixRouteInformer, root *Controller) *ApisixRouteController
func (*ApisixRouteController) Run ¶
func (c *ApisixRouteController) Run(stop <-chan struct{}) error
type ApisixServiceController ¶
type ApisixServiceController struct {
// contains filtered or unexported fields
}
func BuildApisixServiceController ¶
func BuildApisixServiceController( kubeclientset kubernetes.Interface, apisixServiceClientset clientset.Interface, apisixServiceInformer informersv1.ApisixServiceInformer, root *Controller) *ApisixServiceController
func (*ApisixServiceController) Run ¶
func (c *ApisixServiceController) Run(stop <-chan struct{}) error
type ApisixTLSController ¶
type ApisixTLSController struct {
// contains filtered or unexported fields
}
func BuildApisixTlsController ¶
func BuildApisixTlsController( kubeclientset kubernetes.Interface, apisixTLSClientset clientset.Interface, apisixTLSInformer informersv1.ApisixTlsInformer, root *Controller) *ApisixTLSController
func (*ApisixTLSController) Run ¶
func (c *ApisixTLSController) Run(stop <-chan struct{}) error
type ApisixUpstreamController ¶
type ApisixUpstreamController struct {
// contains filtered or unexported fields
}
func BuildApisixUpstreamController ¶
func BuildApisixUpstreamController( kubeclientset kubernetes.Interface, apisixUpstreamClientset clientset.Interface, apisixUpstreamInformer informersv1.ApisixUpstreamInformer, root *Controller) *ApisixUpstreamController
func (*ApisixUpstreamController) Run ¶
func (c *ApisixUpstreamController) Run(stop <-chan struct{}) error
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the ingress apisix controller object.
func NewController ¶
func NewController(cfg *config.Config) (*Controller, error)
NewController creates an ingress apisix controller object.
func (*Controller) Eventf ¶
func (c *Controller) Eventf(_ runtime.Object, eventType string, reason string, message string, _ ...interface{})
Eventf implements the resourcelock.EventRecorder interface.
func (*Controller) Run ¶
func (c *Controller) Run(stop chan struct{}) error
Run launches the controller.
type RouteQueueObj ¶
type RouteQueueObj struct {
Key string `json:"key"`
OldObj *configv1.ApisixRoute `json:"old_obj"`
Ope string `json:"ope"` // add / update / delete
}
type ServiceQueueObj ¶
type ServiceQueueObj struct {
Key string `json:"key"`
OldObj *configv1.ApisixService `json:"old_obj"`
Ope string `json:"ope"` // add / update / delete
}
type TlsQueueObj ¶
type UpstreamQueueObj ¶
type UpstreamQueueObj struct {
Key string `json:"key"`
OldObj *configv1.ApisixUpstream `json:"old_obj"`
Ope string `json:"ope"` // add / update / delete
}