Documentation ¶
Index ¶
- Constants
- type PyLibrary
- func (s *PyLibrary) Deps() []string
- func (s *PyLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec
- func (s *PyLibrary) ImportsAttr() (imps []string)
- func (s *PyLibrary) Kind() string
- func (s *PyLibrary) Name() string
- func (s *PyLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, ...)
- func (s *PyLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule
- func (s *PyLibrary) Srcs() []string
- func (s *PyLibrary) Visibility() []string
Constants ¶
View Source
const ( ProtoPyLibraryRuleName = "proto_py_library" ProtoPyLibraryRuleSuffix = "_py_library" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PyLibrary ¶
type PyLibrary struct { KindName string RuleNameSuffix string Outputs []string Config *protoc.ProtocConfiguration RuleConfig *protoc.LanguageRuleConfig Resolver protoc.DepsResolver }
PyLibrary implements RuleProvider for 'py_library'-derived rules.
func (*PyLibrary) ImportsAttr ¶
ImportsAttr provides the py_library.imports attribute values.
func (*PyLibrary) Resolve ¶
func (s *PyLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, from label.Label)
Resolve implements part of the RuleProvider interface.
func (*PyLibrary) Visibility ¶
Visibility provides visibility labels.
Click to show internal directories.
Click to hide internal directories.