Documentation ¶
Overview ¶
Package psadm is a generated GoMock package.
Index ¶
- type CachedClient
- func (c *CachedClient) GetParameter(key string) (string, error)
- func (c *CachedClient) GetParameterByTime(key string, at time.Time) (*Parameter, error)
- func (c *CachedClient) GetParameterWithDescription(key string) (*Parameter, error)
- func (c *CachedClient) GetParametersByPath(pathPrefix string) ([]*Parameter, error)
- func (c *CachedClient) PutParameter(p *Parameter, overrite bool) error
- type Client
- func (c *Client) CachedClient(cache *cache.Cache) *CachedClient
- func (c *Client) GetParameter(key string) (string, error)
- func (c *Client) GetParameterByTime(key string, at time.Time) (*Parameter, error)
- func (c *Client) GetParameterWithDescription(key string) (*Parameter, error)
- func (c *Client) GetParametersByPath(pathPrefix string) ([]*Parameter, error)
- func (c *Client) PutParameter(param *Parameter, overwrite bool) error
- func (c *Client) SingleflightClientWithCache(cache *cache.Cache) *SingleflightClient
- type Mockclient
- func (m *Mockclient) EXPECT() *MockclientMockRecorder
- func (m *Mockclient) GetParameter(arg0 string) (string, error)
- func (m *Mockclient) GetParameterByTime(arg0 string, arg1 time.Time) (*Parameter, error)
- func (m *Mockclient) GetParameterWithDescription(arg0 string) (*Parameter, error)
- func (m *Mockclient) GetParametersByPath(arg0 string) ([]*Parameter, error)
- func (m *Mockclient) PutParameter(arg0 *Parameter, arg1 bool) error
- type MockclientMockRecorder
- func (mr *MockclientMockRecorder) GetParameter(arg0 interface{}) *gomock.Call
- func (mr *MockclientMockRecorder) GetParameterByTime(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockclientMockRecorder) GetParameterWithDescription(arg0 interface{}) *gomock.Call
- func (mr *MockclientMockRecorder) GetParametersByPath(arg0 interface{}) *gomock.Call
- func (mr *MockclientMockRecorder) PutParameter(arg0, arg1 interface{}) *gomock.Call
- type MockssmClient
- func (m *MockssmClient) DescribeParameters(arg0 *ssm.DescribeParametersInput) (*ssm.DescribeParametersOutput, error)
- func (m *MockssmClient) EXPECT() *MockssmClientMockRecorder
- func (m *MockssmClient) GetParameter(arg0 *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
- func (m *MockssmClient) GetParameterHistory(arg0 *ssm.GetParameterHistoryInput) (*ssm.GetParameterHistoryOutput, error)
- func (m *MockssmClient) PutParameter(arg0 *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
- type MockssmClientMockRecorder
- func (mr *MockssmClientMockRecorder) DescribeParameters(arg0 interface{}) *gomock.Call
- func (mr *MockssmClientMockRecorder) GetParameter(arg0 interface{}) *gomock.Call
- func (mr *MockssmClientMockRecorder) GetParameterHistory(arg0 interface{}) *gomock.Call
- func (mr *MockssmClientMockRecorder) PutParameter(arg0 interface{}) *gomock.Call
- type Parameter
- type SingleflightClient
- func (c *SingleflightClient) GetParameter(key string) (string, error)
- func (c *SingleflightClient) GetParameterByTime(key string, at time.Time) (*Parameter, error)
- func (c *SingleflightClient) GetParameterWithDescription(key string) (*Parameter, error)
- func (c *SingleflightClient) GetParametersByPath(pathPrefix string) ([]*Parameter, error)
- func (c *SingleflightClient) PutParameter(p *Parameter, overrite bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedClient ¶
type CachedClient struct {
// contains filtered or unexported fields
}
CachedClient is a cache-aware psadmin client.
func (*CachedClient) GetParameter ¶
func (c *CachedClient) GetParameter(key string) (string, error)
func (*CachedClient) GetParameterByTime ¶
func (*CachedClient) GetParameterWithDescription ¶
func (c *CachedClient) GetParameterWithDescription(key string) (*Parameter, error)
func (*CachedClient) GetParametersByPath ¶
func (c *CachedClient) GetParametersByPath(pathPrefix string) ([]*Parameter, error)
func (*CachedClient) PutParameter ¶ added in v0.3.0
func (c *CachedClient) PutParameter(p *Parameter, overrite bool) error
PutParameter forwards a call to the underlying client. It doesn't do any caching.
type Client ¶
type Client struct {
SSM ssmClient
}
Client wraps the SSM client for psadm.
func (*Client) CachedClient ¶
func (c *Client) CachedClient(cache *cache.Cache) *CachedClient
CachedClient returns a client with caching.
func (*Client) GetParameter ¶
GetParameter returns the decrypted parameter.
func (*Client) GetParameterByTime ¶
GetParameterByTime returns the latest parameter.
func (*Client) GetParameterWithDescription ¶
func (*Client) GetParametersByPath ¶
GetParametersByPath gets all parameters having given path prefix.
func (*Client) PutParameter ¶
PutParameter puts param into Parameter Store.
func (*Client) SingleflightClientWithCache ¶ added in v0.3.0
func (c *Client) SingleflightClientWithCache(cache *cache.Cache) *SingleflightClient
SingleflightClient returns a client with single flight caching.
type Mockclient ¶ added in v0.3.0
type Mockclient struct {
// contains filtered or unexported fields
}
Mockclient is a mock of client interface.
func NewMockclient ¶ added in v0.3.0
func NewMockclient(ctrl *gomock.Controller) *Mockclient
NewMockclient creates a new mock instance.
func (*Mockclient) EXPECT ¶ added in v0.3.0
func (m *Mockclient) EXPECT() *MockclientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockclient) GetParameter ¶ added in v0.3.0
func (m *Mockclient) GetParameter(arg0 string) (string, error)
GetParameter mocks base method.
func (*Mockclient) GetParameterByTime ¶ added in v0.3.0
GetParameterByTime mocks base method.
func (*Mockclient) GetParameterWithDescription ¶ added in v0.3.0
func (m *Mockclient) GetParameterWithDescription(arg0 string) (*Parameter, error)
GetParameterWithDescription mocks base method.
func (*Mockclient) GetParametersByPath ¶ added in v0.3.0
func (m *Mockclient) GetParametersByPath(arg0 string) ([]*Parameter, error)
GetParametersByPath mocks base method.
func (*Mockclient) PutParameter ¶ added in v0.3.0
func (m *Mockclient) PutParameter(arg0 *Parameter, arg1 bool) error
PutParameter mocks base method.
type MockclientMockRecorder ¶ added in v0.3.0
type MockclientMockRecorder struct {
// contains filtered or unexported fields
}
MockclientMockRecorder is the mock recorder for Mockclient.
func (*MockclientMockRecorder) GetParameter ¶ added in v0.3.0
func (mr *MockclientMockRecorder) GetParameter(arg0 interface{}) *gomock.Call
GetParameter indicates an expected call of GetParameter.
func (*MockclientMockRecorder) GetParameterByTime ¶ added in v0.3.0
func (mr *MockclientMockRecorder) GetParameterByTime(arg0, arg1 interface{}) *gomock.Call
GetParameterByTime indicates an expected call of GetParameterByTime.
func (*MockclientMockRecorder) GetParameterWithDescription ¶ added in v0.3.0
func (mr *MockclientMockRecorder) GetParameterWithDescription(arg0 interface{}) *gomock.Call
GetParameterWithDescription indicates an expected call of GetParameterWithDescription.
func (*MockclientMockRecorder) GetParametersByPath ¶ added in v0.3.0
func (mr *MockclientMockRecorder) GetParametersByPath(arg0 interface{}) *gomock.Call
GetParametersByPath indicates an expected call of GetParametersByPath.
func (*MockclientMockRecorder) PutParameter ¶ added in v0.3.0
func (mr *MockclientMockRecorder) PutParameter(arg0, arg1 interface{}) *gomock.Call
PutParameter indicates an expected call of PutParameter.
type MockssmClient ¶ added in v0.3.0
type MockssmClient struct {
// contains filtered or unexported fields
}
MockssmClient is a mock of ssmClient interface.
func NewMockssmClient ¶ added in v0.3.0
func NewMockssmClient(ctrl *gomock.Controller) *MockssmClient
NewMockssmClient creates a new mock instance.
func (*MockssmClient) DescribeParameters ¶ added in v0.3.0
func (m *MockssmClient) DescribeParameters(arg0 *ssm.DescribeParametersInput) (*ssm.DescribeParametersOutput, error)
DescribeParameters mocks base method.
func (*MockssmClient) EXPECT ¶ added in v0.3.0
func (m *MockssmClient) EXPECT() *MockssmClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockssmClient) GetParameter ¶ added in v0.3.0
func (m *MockssmClient) GetParameter(arg0 *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
GetParameter mocks base method.
func (*MockssmClient) GetParameterHistory ¶ added in v0.3.0
func (m *MockssmClient) GetParameterHistory(arg0 *ssm.GetParameterHistoryInput) (*ssm.GetParameterHistoryOutput, error)
GetParameterHistory mocks base method.
func (*MockssmClient) PutParameter ¶ added in v0.3.0
func (m *MockssmClient) PutParameter(arg0 *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
PutParameter mocks base method.
type MockssmClientMockRecorder ¶ added in v0.3.0
type MockssmClientMockRecorder struct {
// contains filtered or unexported fields
}
MockssmClientMockRecorder is the mock recorder for MockssmClient.
func (*MockssmClientMockRecorder) DescribeParameters ¶ added in v0.3.0
func (mr *MockssmClientMockRecorder) DescribeParameters(arg0 interface{}) *gomock.Call
DescribeParameters indicates an expected call of DescribeParameters.
func (*MockssmClientMockRecorder) GetParameter ¶ added in v0.3.0
func (mr *MockssmClientMockRecorder) GetParameter(arg0 interface{}) *gomock.Call
GetParameter indicates an expected call of GetParameter.
func (*MockssmClientMockRecorder) GetParameterHistory ¶ added in v0.3.0
func (mr *MockssmClientMockRecorder) GetParameterHistory(arg0 interface{}) *gomock.Call
GetParameterHistory indicates an expected call of GetParameterHistory.
func (*MockssmClientMockRecorder) PutParameter ¶ added in v0.3.0
func (mr *MockssmClientMockRecorder) PutParameter(arg0 interface{}) *gomock.Call
PutParameter indicates an expected call of PutParameter.
type Parameter ¶
type Parameter struct { Description string `yaml:"description"` KMSKeyID string `yaml:"kmskeyid"` Name string `yaml:"name"` Type string `yaml:"type"` Value string `yaml:"value"` }
Parameter is the parameter exported by psadm. This should be sufficient for import and export.
type SingleflightClient ¶ added in v0.3.0
type SingleflightClient struct {
// contains filtered or unexported fields
}
SingleflightClient is a duplicate function call suppression client.
func (*SingleflightClient) GetParameter ¶ added in v0.3.0
func (c *SingleflightClient) GetParameter(key string) (string, error)
func (*SingleflightClient) GetParameterByTime ¶ added in v0.3.0
func (*SingleflightClient) GetParameterWithDescription ¶ added in v0.3.0
func (c *SingleflightClient) GetParameterWithDescription(key string) (*Parameter, error)
func (*SingleflightClient) GetParametersByPath ¶ added in v0.3.0
func (c *SingleflightClient) GetParametersByPath(pathPrefix string) ([]*Parameter, error)
func (*SingleflightClient) PutParameter ¶ added in v0.3.0
func (c *SingleflightClient) PutParameter(p *Parameter, overrite bool) error
PutParameter forwards a call to the underlying client. It doesn't do any deduplication.