Documentation ¶
Overview ¶
Copyright 2019 The OpenShift Authors.
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 ¶
- type OvirtActuator
- func (a *OvirtActuator) Create(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *OvirtActuator) Delete(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *OvirtActuator) Exists(ctx context.Context, cr *minterv1.CredentialsRequest) (bool, error)
- func (a *OvirtActuator) GetCredentialsRootSecret(ctx context.Context, cr *minterv1.CredentialsRequest) (*corev1.Secret, error)
- func (a *OvirtActuator) GetCredentialsRootSecretLocation() types.NamespacedName
- func (a *OvirtActuator) Update(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *OvirtActuator) Upgradeable(mode operatorv1.CloudCredentialsMode) *configv1.ClusterOperatorStatusCondition
- type OvirtCreds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OvirtActuator ¶
type OvirtActuator struct { Client client.Client Codec *minterv1.ProviderCodec }
func NewActuator ¶
func NewActuator(client client.Client) (*OvirtActuator, error)
NewActuator creates a new Ovirt actuator.
func (*OvirtActuator) Create ¶
func (a *OvirtActuator) Create(ctx context.Context, cr *minterv1.CredentialsRequest) error
Create the credentials.
func (*OvirtActuator) Delete ¶
func (a *OvirtActuator) Delete(ctx context.Context, cr *minterv1.CredentialsRequest) error
Delete credentials
func (*OvirtActuator) Exists ¶
func (a *OvirtActuator) Exists(ctx context.Context, cr *minterv1.CredentialsRequest) (bool, error)
Exists checks if the credentials currently exist.
func (*OvirtActuator) GetCredentialsRootSecret ¶
func (a *OvirtActuator) GetCredentialsRootSecret(ctx context.Context, cr *minterv1.CredentialsRequest) (*corev1.Secret, error)
func (*OvirtActuator) GetCredentialsRootSecretLocation ¶
func (a *OvirtActuator) GetCredentialsRootSecretLocation() types.NamespacedName
GetCredentialsRootSecretLocation returns the namespace and name where the parent credentials secret is stored.
func (*OvirtActuator) Update ¶
func (a *OvirtActuator) Update(ctx context.Context, cr *minterv1.CredentialsRequest) error
Update the credentials to the provided definition.
func (*OvirtActuator) Upgradeable ¶
func (a *OvirtActuator) Upgradeable(mode operatorv1.CloudCredentialsMode) *configv1.ClusterOperatorStatusCondition
Upgradeable returns a ClusterOperator status condition for the upgradeable type if the system is considered not upgradeable. Otherwise, return nil as the default value is for things to be upgradeable.