Documentation ¶
Index ¶
- type SecurityClient
- func (in *SecurityClient) AddRule(ctx context.Context, resource *computepb.SecurityPolicyRule, ...) (bool, error)
- func (in *SecurityClient) CreatePolicy(ctx context.Context, policy *computepb.SecurityPolicy, projectID string) (bool, error)
- func (in *SecurityClient) DeletePolicy(ctx context.Context, projectID, policyName string) (bool, error)
- func (in *SecurityClient) GetPolicy(ctx context.Context, projectID, policyName string) (*computepb.SecurityPolicy, error)
- func (in *SecurityClient) GetRule(ctx context.Context, priority *int32, projectID, policyName string) (*computepb.SecurityPolicyRule, error)
- func (in *SecurityClient) ListPolicies(ctx context.Context, projectID string) *compute.SecurityPolicyIterator
- func (in *SecurityClient) ListPreConfiguredRules(ctx context.Context, projectID string) (*computepb.SecurityPoliciesListPreconfiguredExpressionSetsResponse, error)
- func (in *SecurityClient) RemoveRule(ctx context.Context, priority *int32, projectID, policyName string) (bool, error)
- func (in *SecurityClient) UpdatePolicy(ctx context.Context, policy *computepb.SecurityPolicy, ...) (bool, error)
- func (in *SecurityClient) UpdateRule(ctx context.Context, resource *computepb.SecurityPolicyRule, ...) (bool, error)
- type ServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityClient ¶
type SecurityClient struct { Client *compute.SecurityPoliciesClient Config *config.Config // contains filtered or unexported fields }
func NewSecurityClient ¶
func NewSecurityClient(cfg *config.Config, ctx context.Context, log *logrus.Entry, opts ...option.ClientOption) *SecurityClient
func (*SecurityClient) AddRule ¶
func (in *SecurityClient) AddRule(ctx context.Context, resource *computepb.SecurityPolicyRule, projectID, policyName string) (bool, error)
func (*SecurityClient) CreatePolicy ¶
func (in *SecurityClient) CreatePolicy(ctx context.Context, policy *computepb.SecurityPolicy, projectID string) (bool, error)
func (*SecurityClient) DeletePolicy ¶
func (*SecurityClient) GetPolicy ¶
func (in *SecurityClient) GetPolicy(ctx context.Context, projectID, policyName string) (*computepb.SecurityPolicy, error)
func (*SecurityClient) GetRule ¶
func (in *SecurityClient) GetRule(ctx context.Context, priority *int32, projectID, policyName string) (*computepb.SecurityPolicyRule, error)
func (*SecurityClient) ListPolicies ¶
func (in *SecurityClient) ListPolicies(ctx context.Context, projectID string) *compute.SecurityPolicyIterator
func (*SecurityClient) ListPreConfiguredRules ¶
func (in *SecurityClient) ListPreConfiguredRules(ctx context.Context, projectID string) (*computepb.SecurityPoliciesListPreconfiguredExpressionSetsResponse, error)
func (*SecurityClient) RemoveRule ¶
func (*SecurityClient) UpdatePolicy ¶
func (in *SecurityClient) UpdatePolicy(ctx context.Context, policy *computepb.SecurityPolicy, projectID, policyName string) (bool, error)
func (*SecurityClient) UpdateRule ¶
func (in *SecurityClient) UpdateRule(ctx context.Context, resource *computepb.SecurityPolicyRule, projectID, policyName string) (bool, error)
type ServiceClient ¶
type ServiceClient struct { Client *compute.BackendServicesClient // contains filtered or unexported fields }
func NewServiceClient ¶
func NewServiceClient(ctx context.Context, log *logrus.Entry) *ServiceClient
func (*ServiceClient) ListBackendServices ¶
func (in *ServiceClient) ListBackendServices(ctx context.Context, projectID string) *compute.BackendServiceIterator
func (*ServiceClient) SetSecurityPolicy ¶
Click to show internal directories.
Click to hide internal directories.