Documentation ¶
Overview ¶
Copyright 2018 Oracle and/or its affiliates. All rights reserved.
Licensed 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.
Copyright 2018 Oracle and/or its affiliates. All rights reserved.
Licensed 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.
Copyright 2018 Oracle and/or its affiliates. All rights reserved.
Licensed 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
- func CreateOrUpdateSecurityRuleSet(c clientset.Interface, security *cloudv1alpha1.Security, ...) (*v1alpha1.SecurityRuleSet, bool, error)
- func DeleteSecurityRuleSet(c clientset.Interface, security *cloudv1alpha1.Security, ...) (*v1alpha1.SecurityRuleSet, error)
- func NewSecurityAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter
- func ParseEgressRule(s string) ocicore.EgressSecurityRule
- func ParseIngressRule(s string) ocicore.IngressSecurityRule
- type SecurityAdapter
- func (a *SecurityAdapter) CallbackForResource(resource schema.GroupVersionResource) cache.ResourceEventHandlerFuncs
- func (a *SecurityAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *SecurityAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *SecurityAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *SecurityAdapter) Kind() string
- func (a *SecurityAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *SecurityAdapter) Reconcile(obj runtime.Object) (runtime.Object, error)
- func (a *SecurityAdapter) Resource() string
- func (a *SecurityAdapter) SetLister(lister cache.GenericLister)
- func (a *SecurityAdapter) SetQueue(q workqueue.RateLimitingInterface)
- func (a *SecurityAdapter) Subscriptions() []schema.GroupVersionResource
- func (a *SecurityAdapter) Update(obj runtime.Object) (runtime.Object, error)
Constants ¶
const (
CloudDomain = "security"
)
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateSecurityRuleSet ¶
func CreateOrUpdateSecurityRuleSet(c clientset.Interface, security *cloudv1alpha1.Security, controllerRef *metav1.OwnerReference, vncRef string) (*v1alpha1.SecurityRuleSet, bool, error)
CreateOrUpdateSecurityRuleSet reconciles the security list resource
func DeleteSecurityRuleSet ¶
func DeleteSecurityRuleSet(c clientset.Interface, security *cloudv1alpha1.Security, securityRuleSetName string) (*v1alpha1.SecurityRuleSet, error)
DeleteSecurityRuleSet deletes the security list resource
func NewSecurityAdapter ¶
func NewSecurityAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter
func ParseEgressRule ¶
func ParseEgressRule(s string) ocicore.EgressSecurityRule
ParseEgressRule converts a string from the spec to EgressSecurityRule type
func ParseIngressRule ¶
func ParseIngressRule(s string) ocicore.IngressSecurityRule
ParseIngressRule converts a string from the spec to IngressSecurityRule type
Types ¶
type SecurityAdapter ¶
type SecurityAdapter struct {
// contains filtered or unexported fields
}
func (*SecurityAdapter) CallbackForResource ¶
func (a *SecurityAdapter) CallbackForResource(resource schema.GroupVersionResource) cache.ResourceEventHandlerFuncs
func (*SecurityAdapter) Equivalent ¶
func (a *SecurityAdapter) Equivalent(obj1, obj2 runtime.Object) bool
func (*SecurityAdapter) GroupVersionWithResource ¶
func (a *SecurityAdapter) GroupVersionWithResource() schema.GroupVersionResource
func (*SecurityAdapter) Kind ¶
func (a *SecurityAdapter) Kind() string
func (*SecurityAdapter) ObjectMeta ¶
func (a *SecurityAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
func (*SecurityAdapter) Resource ¶
func (a *SecurityAdapter) Resource() string
func (*SecurityAdapter) SetLister ¶
func (a *SecurityAdapter) SetLister(lister cache.GenericLister)
func (*SecurityAdapter) SetQueue ¶
func (a *SecurityAdapter) SetQueue(q workqueue.RateLimitingInterface)
func (*SecurityAdapter) Subscriptions ¶
func (a *SecurityAdapter) Subscriptions() []schema.GroupVersionResource