Documentation ¶
Index ¶
- type Client
- func (c *Client) AddPermitListRules(namespace string, cloud string, resourceName string, ...) error
- func (c *Client) CreateResource(namespace string, cloud string, resourceName string, ...) (map[string]string, error)
- func (c *Client) DeletePermitListRules(namespace string, cloud string, resourceName string, rules []string) error
- func (c *Client) DeleteTag(tag string) error
- func (c *Client) DeleteTagMembers(tag string, member string) error
- func (c *Client) GetPermitList(namespace string, cloud string, resourceName string) ([]*paragliderpb.PermitListRule, error)
- func (c *Client) GetTag(tag string) (*tagservicepb.TagMapping, error)
- func (c *Client) ListNamespaces() (map[string][]config.CloudDeployment, error)
- func (c *Client) ListTags() ([]*tagservicepb.TagMapping, error)
- func (c *Client) ResolveTag(tag string) ([]*tagservicepb.TagMapping, error)
- func (c *Client) SetTag(tag string, tagMapping *tagservicepb.TagMapping) error
- type ParagliderControllerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ParagliderControllerClient ControllerAddress string }
func (*Client) AddPermitListRules ¶
func (c *Client) AddPermitListRules(namespace string, cloud string, resourceName string, rules []*paragliderpb.PermitListRule) error
Add permit list rules to a resource
func (*Client) CreateResource ¶
func (c *Client) CreateResource(namespace string, cloud string, resourceName string, resource *paragliderpb.ResourceDescriptionString) (map[string]string, error)
Create a resource
func (*Client) DeletePermitListRules ¶
func (c *Client) DeletePermitListRules(namespace string, cloud string, resourceName string, rules []string) error
Delete permit list rules from a resource
func (*Client) DeleteTagMembers ¶
Delete member from a tag
func (*Client) GetPermitList ¶
func (c *Client) GetPermitList(namespace string, cloud string, resourceName string) ([]*paragliderpb.PermitListRule, error)
Get a permit list for a resource
func (*Client) GetTag ¶
func (c *Client) GetTag(tag string) (*tagservicepb.TagMapping, error)
Get the members of a tag
func (*Client) ListNamespaces ¶
func (c *Client) ListNamespaces() (map[string][]config.CloudDeployment, error)
List all configured namespaces
func (*Client) ListTags ¶
func (c *Client) ListTags() ([]*tagservicepb.TagMapping, error)
ListTags lists all tags and their mappings
func (*Client) ResolveTag ¶
func (c *Client) ResolveTag(tag string) ([]*tagservicepb.TagMapping, error)
Resolve a tag down to all IP/URI members
func (*Client) SetTag ¶
func (c *Client) SetTag(tag string, tagMapping *tagservicepb.TagMapping) error
Set a tag as a member of a group or as a mapping to a URI/IP
type ParagliderControllerClient ¶
type ParagliderControllerClient interface { GetPermitList(namespace string, cloud string, resourceName string) ([]*paragliderpb.PermitListRule, error) AddPermitListRules(namespace string, cloud string, resourceName string, rules []*paragliderpb.PermitListRule) error DeletePermitListRules(namespace string, cloud string, resourceName string, rules []string) error CreateResource(namespace string, cloud string, resourceName string, resource *paragliderpb.ResourceDescriptionString) (map[string]string, error) GetTag(tag string) (*tagservicepb.TagMapping, error) ResolveTag(tag string) ([]*tagservicepb.TagMapping, error) SetTag(tag string, tagMapping *tagservicepb.TagMapping) error DeleteTag(tag string) error DeleteTagMembers(tag string, members []string) error ListNamespaces() (map[string][]config.CloudDeployment, error) }
Click to show internal directories.
Click to hide internal directories.