provider

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

*

  • Copyright 2018 Curtis Mattoon *
  • 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 Curtis Mattoon *
  • 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSProvider

type AWSProvider struct {
	Session *session.Session
	Service *ssm.SSM
	// contains filtered or unexported fields
}

func (AWSProvider) GetParameterDataByPath added in v0.1.5

func (p AWSProvider) GetParameterDataByPath(ppath string, decrypt bool, roleArn string) (map[string]string, error)

func (AWSProvider) GetParameterValue

func (p AWSProvider) GetParameterValue(name string, decrypt bool, roleArn string) (string, error)

type MockProvider added in v0.1.2

type MockProvider struct {
	Value             string
	DecryptedValue    string
	DirectoryContents map[string]string
}

Mock an error with {"(error)", "error message"}

func (MockProvider) GetParameterDataByPath added in v0.1.5

func (mp MockProvider) GetParameterDataByPath(s string, b bool, r string) (map[string]string, error)

func (MockProvider) GetParameterValue added in v0.1.2

func (mp MockProvider) GetParameterValue(s string, b bool, r string) (string, error)

type Provider

type Provider interface {
	GetParameterValue(string, bool, string) (string, error)
	GetParameterDataByPath(string, bool, string) (map[string]string, error)
}

func NewAWSProvider

func NewAWSProvider(cfg *config.Config) (Provider, error)

func NewProvider

func NewProvider(cfg *config.Config) (Provider, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL