Documentation ¶
Index ¶
- type AWSBundleClient
- type Action
- type BundleClient
- type GCPBundleClient
- type GCPBundleClientOpt
- type GCSAPIErr
- type GCSAPIErrDetail
- type GCSAPIErrResp
- type GithubBundleClient
- type GithubBundleClientOptions
- type GithubHTTPClient
- type GithubPublishInfo
- type HTTPBundleClient
- type HTTPClient
- type Meta
- type Object
- type OpaProvider
- func (o *OpaProvider) ConfigureClient(key []byte) (BundleClient, error)
- func (o *OpaProvider) DiscoverApplications(info orchestrator.IntegrationInfo) ([]orchestrator.ApplicationInfo, error)
- func (o *OpaProvider) GetPolicyInfo(integration orchestrator.IntegrationInfo, appInfo orchestrator.ApplicationInfo) ([]policysupport.PolicyInfo, error)
- func (o *OpaProvider) MakeDefaultBundle(data []byte) (bytes.Buffer, error)
- func (o *OpaProvider) Name() string
- func (o *OpaProvider) SetPolicyInfo(integration orchestrator.IntegrationInfo, appInfo orchestrator.ApplicationInfo, ...) (int, error)
- type Policies
- type Policy
- type Subject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSBundleClient ¶ added in v0.5.0
type AWSBundleClient struct {
// contains filtered or unexported fields
}
func NewAWSBundleClient ¶ added in v0.5.0
func NewAWSBundleClient(bucketName, objectName string, key []byte, opts awscommon.AWSClientOptions) (*AWSBundleClient, error)
func (*AWSBundleClient) GetDataFromBundle ¶ added in v0.5.0
func (a *AWSBundleClient) GetDataFromBundle(path string) ([]byte, error)
func (*AWSBundleClient) PostBundle ¶ added in v0.5.0
func (a *AWSBundleClient) PostBundle(bundle []byte) (int, error)
type BundleClient ¶
type GCPBundleClient ¶
type GCPBundleClient struct {
// contains filtered or unexported fields
}
func NewGCPBundleClient ¶
func NewGCPBundleClient(bucketName, objectName string, key []byte, opts ...GCPBundleClientOpt) (*GCPBundleClient, error)
func (*GCPBundleClient) GetDataFromBundle ¶
func (g *GCPBundleClient) GetDataFromBundle(path string) ([]byte, error)
func (*GCPBundleClient) PostBundle ¶
func (g *GCPBundleClient) PostBundle(bundle []byte) (int, error)
type GCPBundleClientOpt ¶
type GCPBundleClientOpt func(client *GCPBundleClient)
func WithHTTPClient ¶
func WithHTTPClient(c HTTPClient) GCPBundleClientOpt
type GCSAPIErrDetail ¶
type GCSAPIErrResp ¶
type GCSAPIErrResp struct {
Error *GCSAPIErrDetail `json:"error,omitempty"`
}
type GithubBundleClient ¶ added in v0.5.0
type GithubBundleClient struct {
// contains filtered or unexported fields
}
func NewGithubBundleClient ¶ added in v0.5.0
func NewGithubBundleClient(account, repo, bundlePath string, key []byte, opts GithubBundleClientOptions) (*GithubBundleClient, error)
func (*GithubBundleClient) GetDataFromBundle ¶ added in v0.5.0
func (g *GithubBundleClient) GetDataFromBundle(path string) ([]byte, error)
func (*GithubBundleClient) PostBundle ¶ added in v0.5.0
func (g *GithubBundleClient) PostBundle(bundle []byte) (int, error)
type GithubBundleClientOptions ¶ added in v0.5.0
type GithubBundleClientOptions struct {
HTTPClient GithubHTTPClient
}
type GithubHTTPClient ¶ added in v0.5.0
type GithubPublishInfo ¶ added in v0.5.0
type HTTPBundleClient ¶
type HTTPBundleClient struct { BundleServerURL string HttpClient HTTPClient }
func (*HTTPBundleClient) GetDataFromBundle ¶
func (b *HTTPBundleClient) GetDataFromBundle(path string) ([]byte, error)
func (*HTTPBundleClient) PostBundle ¶
func (b *HTTPBundleClient) PostBundle(bundle []byte) (int, error)
type HTTPClient ¶
type OpaProvider ¶
type OpaProvider struct { BundleClientOverride BundleClient ResourcesDirectory string }
func (*OpaProvider) ConfigureClient ¶
func (o *OpaProvider) ConfigureClient(key []byte) (BundleClient, error)
func (*OpaProvider) DiscoverApplications ¶
func (o *OpaProvider) DiscoverApplications(info orchestrator.IntegrationInfo) ([]orchestrator.ApplicationInfo, error)
func (*OpaProvider) GetPolicyInfo ¶
func (o *OpaProvider) GetPolicyInfo(integration orchestrator.IntegrationInfo, appInfo orchestrator.ApplicationInfo) ([]policysupport.PolicyInfo, error)
func (*OpaProvider) MakeDefaultBundle ¶
func (o *OpaProvider) MakeDefaultBundle(data []byte) (bytes.Buffer, error)
func (*OpaProvider) Name ¶
func (o *OpaProvider) Name() string
func (*OpaProvider) SetPolicyInfo ¶
func (o *OpaProvider) SetPolicyInfo(integration orchestrator.IntegrationInfo, appInfo orchestrator.ApplicationInfo, policyInfos []policysupport.PolicyInfo) (int, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.