Documentation ¶
Index ¶
- func GetEtcdKey(e EtcdMethod, ctx context.Context, key string, opts *client.GetOptions) (*client.Response, error)
- type BlobMethod
- type EtcdMethod
- type FileMethod
- type GenericMethod
- type HttpMethod
- type Method
- func New(manager *string, method string, entry *string) (Method, error)
- func NewBlobMethod(manager *string, entry *string) (Method, error)
- func NewBlobMethodWithAccount(account string) (Method, error)
- func NewEtcdMethod(manager *string, entry *string) (Method, error)
- func NewEtcdMethodWithEndpoints(endpoints []string) (Method, error)
- func NewFileMethod(manager *string, entry *string) (Method, error)
- func NewFileMethodWithUrl(u *url.URL) (Method, error)
- func NewGenericMethod(manager *string, entry *string) (Method, error)
- func NewHttpMethod(manager *string, entry *string) (Method, error)
- func NewS3Method(manager *string, entry *string) (Method, error)
- func NewS3MethodWithRegionAndBucket(region string, bucket string) (Method, error)
- type Response
- type S3Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEtcdKey ¶
func GetEtcdKey(e EtcdMethod, ctx context.Context, key string, opts *client.GetOptions) (*client.Response, error)
Types ¶
type BlobMethod ¶
type BlobMethod struct { StorageAccount string `mapstructure:"storage-account-name" json:"storage-account-name"` AzureClient storage.Client `json:"-"` BlobClient storage.BlobStorageClient `json:"-"` }
type EtcdMethod ¶
type FileMethod ¶
type GenericMethod ¶
type GenericMethod struct { }
type HttpMethod ¶
type HttpMethod struct { Client *retryablehttp.Client `json:"-"` Manager *string `json:"-"` Host string `mapstruecture:"host" json:"host,omitempty"` Retries string `mapstructure:"retries" json:"retries"` RetryWaitMax string `mapstructure:"retry-wait-max" json:"retry-wait-max"` RetryWaitMin string `mapstructure:"retry-wait-min" json:"retry-wait-min"` Timeout string `mapstructure:"timeout" json:"timeout"` AuthType string `mapstructure:"auth-type" json"auth-type,omitempty"` AuthToken string `mapstructure:"auth-token" json:"-"` AuthUser string `mapstructure:"auth-user" json:"auth-user,omitempty"` }
func (*HttpMethod) MethodRetryPolicy ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (Response) GetResponseBody ¶
func (r Response) GetResponseBody() io.ReadCloser
func (Response) GetResponseStatusCode ¶
Click to show internal directories.
Click to hide internal directories.