Documentation ¶
Overview ¶
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.
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
- type Client
- func (c *Client) Close(_ context.Context) error
- func (c *Client) DeleteSecret(_ context.Context, remoteRef esv1beta1.PushRemoteRef) error
- func (c *Client) GetAllSecrets(_ context.Context, ref esv1beta1.ExternalSecretFind) (map[string][]byte, error)
- func (c *Client) GetSecret(_ context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
- func (c *Client) GetSecretMap(_ context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
- func (c *Client) PushSecret(_ context.Context, value []byte, _ *apiextensionsv1.JSON, ...) error
- func (c *Client) Validate() (esv1beta1.ValidationResult, error)
- type CustomField
- type Field
- type File
- type Provider
- type Secret
- type SecurityClient
Constants ¶
const ( LoginType = "login" LoginTypeExpr = "login|username" PasswordType = "password" URLTypeExpr = "url|baseurl" URLType = "url" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteSecret ¶
func (*Client) GetAllSecrets ¶
func (*Client) GetSecretMap ¶
func (*Client) PushSecret ¶
func (c *Client) PushSecret(_ context.Context, value []byte, _ *apiextensionsv1.JSON, remoteRef esv1beta1.PushRemoteRef) error
type CustomField ¶
type Provider ¶
type Provider struct{}
Provider implements the necessary NewClient() and ValidateStore() funcs.
func (*Provider) Capabilities ¶
func (p *Provider) Capabilities() esv1beta1.SecretStoreCapabilities
func (*Provider) NewClient ¶
func (p *Provider) NewClient(ctx context.Context, store esv1beta1.GenericStore, kube kclient.Client, namespace string) (esv1beta1.SecretsClient, error)
NewClient constructs a GCP Provider.
func (*Provider) ValidateStore ¶
func (p *Provider) ValidateStore(store esv1beta1.GenericStore) error
type Secret ¶
type Secret struct { Title string `json:"title"` Type string `json:"type"` Fields []Field `json:"fields"` Custom []CustomField `json:"custom"` Files []File `json:"files"` }
type SecurityClient ¶
type SecurityClient interface { GetSecrets(filter []string) ([]*ksm.Record, error) GetSecretByTitle(recordTitle string) (*ksm.Record, error) CreateSecretWithRecordData(recUID, folderUID string, recordData *ksm.RecordCreate) (string, error) DeleteSecrets(recrecordUids []string) (map[string]string, error) Save(record *ksm.Record) error }