invocation_policy

package
v1.509.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetValue_Behavior_name = map[int32]string{
		0: "UNDEFINED",
		1: "ALLOW_OVERRIDES",
		2: "APPEND",
		3: "FINAL_VALUE_IGNORE_OVERRIDES",
	}
	SetValue_Behavior_value = map[string]int32{
		"UNDEFINED":                    0,
		"ALLOW_OVERRIDES":              1,
		"APPEND":                       2,
		"FINAL_VALUE_IGNORE_OVERRIDES": 3,
	}
)

Enum value maps for SetValue_Behavior.

View Source
var File_bazel_invocation_policy_invocation_policy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllowValues

type AllowValues struct {
	AllowedValues []string `protobuf:"bytes,1,rep,name=allowed_values,json=allowedValues" json:"allowed_values,omitempty"`
	// Types that are assignable to ReplacementValue:
	//
	//	*AllowValues_NewValue
	//	*AllowValues_UseDefault
	ReplacementValue isAllowValues_ReplacementValue `protobuf_oneof:"replacement_value"`
	// contains filtered or unexported fields
}

func (*AllowValues) Descriptor deprecated

func (*AllowValues) Descriptor() ([]byte, []int)

Deprecated: Use AllowValues.ProtoReflect.Descriptor instead.

func (*AllowValues) GetAllowedValues

func (x *AllowValues) GetAllowedValues() []string

func (*AllowValues) GetNewValue

func (x *AllowValues) GetNewValue() string

func (*AllowValues) GetReplacementValue

func (m *AllowValues) GetReplacementValue() isAllowValues_ReplacementValue

func (*AllowValues) GetUseDefault

func (x *AllowValues) GetUseDefault() *UseDefault

func (*AllowValues) ProtoMessage

func (*AllowValues) ProtoMessage()

func (*AllowValues) ProtoReflect

func (x *AllowValues) ProtoReflect() protoreflect.Message

func (*AllowValues) Reset

func (x *AllowValues) Reset()

func (*AllowValues) String

func (x *AllowValues) String() string

type AllowValues_NewValue

type AllowValues_NewValue struct {
	NewValue string `protobuf:"bytes,3,opt,name=new_value,json=newValue,oneof"`
}

type AllowValues_UseDefault

type AllowValues_UseDefault struct {
	UseDefault *UseDefault `protobuf:"bytes,4,opt,name=use_default,json=useDefault,oneof"`
}

type DisallowValues

type DisallowValues struct {
	DisallowedValues []string `protobuf:"bytes,1,rep,name=disallowed_values,json=disallowedValues" json:"disallowed_values,omitempty"`
	// Types that are assignable to ReplacementValue:
	//
	//	*DisallowValues_NewValue
	//	*DisallowValues_UseDefault
	ReplacementValue isDisallowValues_ReplacementValue `protobuf_oneof:"replacement_value"`
	// contains filtered or unexported fields
}

func (*DisallowValues) Descriptor deprecated

func (*DisallowValues) Descriptor() ([]byte, []int)

Deprecated: Use DisallowValues.ProtoReflect.Descriptor instead.

func (*DisallowValues) GetDisallowedValues

func (x *DisallowValues) GetDisallowedValues() []string

func (*DisallowValues) GetNewValue

func (x *DisallowValues) GetNewValue() string

func (*DisallowValues) GetReplacementValue

func (m *DisallowValues) GetReplacementValue() isDisallowValues_ReplacementValue

func (*DisallowValues) GetUseDefault

func (x *DisallowValues) GetUseDefault() *UseDefault

func (*DisallowValues) ProtoMessage

func (*DisallowValues) ProtoMessage()

func (*DisallowValues) ProtoReflect

func (x *DisallowValues) ProtoReflect() protoreflect.Message

func (*DisallowValues) Reset

func (x *DisallowValues) Reset()

func (*DisallowValues) String

func (x *DisallowValues) String() string

type DisallowValues_NewValue

type DisallowValues_NewValue struct {
	NewValue string `protobuf:"bytes,3,opt,name=new_value,json=newValue,oneof"`
}

type DisallowValues_UseDefault

type DisallowValues_UseDefault struct {
	UseDefault *UseDefault `protobuf:"bytes,4,opt,name=use_default,json=useDefault,oneof"`
}

type FlagPolicy

type FlagPolicy struct {
	FlagName *string  `protobuf:"bytes,1,opt,name=flag_name,json=flagName" json:"flag_name,omitempty"`
	Commands []string `protobuf:"bytes,2,rep,name=commands" json:"commands,omitempty"`
	// Types that are assignable to Operation:
	//
	//	*FlagPolicy_SetValue
	//	*FlagPolicy_UseDefault
	//	*FlagPolicy_DisallowValues
	//	*FlagPolicy_AllowValues
	Operation isFlagPolicy_Operation `protobuf_oneof:"operation"`
	// contains filtered or unexported fields
}

func (*FlagPolicy) Descriptor deprecated

func (*FlagPolicy) Descriptor() ([]byte, []int)

Deprecated: Use FlagPolicy.ProtoReflect.Descriptor instead.

func (*FlagPolicy) GetAllowValues

func (x *FlagPolicy) GetAllowValues() *AllowValues

func (*FlagPolicy) GetCommands

func (x *FlagPolicy) GetCommands() []string

func (*FlagPolicy) GetDisallowValues

func (x *FlagPolicy) GetDisallowValues() *DisallowValues

func (*FlagPolicy) GetFlagName

func (x *FlagPolicy) GetFlagName() string

func (*FlagPolicy) GetOperation

func (m *FlagPolicy) GetOperation() isFlagPolicy_Operation

func (*FlagPolicy) GetSetValue

func (x *FlagPolicy) GetSetValue() *SetValue

func (*FlagPolicy) GetUseDefault

func (x *FlagPolicy) GetUseDefault() *UseDefault

func (*FlagPolicy) ProtoMessage

func (*FlagPolicy) ProtoMessage()

func (*FlagPolicy) ProtoReflect

func (x *FlagPolicy) ProtoReflect() protoreflect.Message

func (*FlagPolicy) Reset

func (x *FlagPolicy) Reset()

func (*FlagPolicy) String

func (x *FlagPolicy) String() string

type FlagPolicy_AllowValues

type FlagPolicy_AllowValues struct {
	AllowValues *AllowValues `protobuf:"bytes,6,opt,name=allow_values,json=allowValues,oneof"`
}

type FlagPolicy_DisallowValues

type FlagPolicy_DisallowValues struct {
	DisallowValues *DisallowValues `protobuf:"bytes,5,opt,name=disallow_values,json=disallowValues,oneof"`
}

type FlagPolicy_SetValue

type FlagPolicy_SetValue struct {
	SetValue *SetValue `protobuf:"bytes,3,opt,name=set_value,json=setValue,oneof"`
}

type FlagPolicy_UseDefault

type FlagPolicy_UseDefault struct {
	UseDefault *UseDefault `protobuf:"bytes,4,opt,name=use_default,json=useDefault,oneof"`
}

type InvocationPolicy

type InvocationPolicy struct {
	FlagPolicies []*FlagPolicy `protobuf:"bytes,1,rep,name=flag_policies,json=flagPolicies" json:"flag_policies,omitempty"`
	// contains filtered or unexported fields
}

func (*InvocationPolicy) Descriptor deprecated

func (*InvocationPolicy) Descriptor() ([]byte, []int)

Deprecated: Use InvocationPolicy.ProtoReflect.Descriptor instead.

func (*InvocationPolicy) GetFlagPolicies

func (x *InvocationPolicy) GetFlagPolicies() []*FlagPolicy

func (*InvocationPolicy) ProtoMessage

func (*InvocationPolicy) ProtoMessage()

func (*InvocationPolicy) ProtoReflect

func (x *InvocationPolicy) ProtoReflect() protoreflect.Message

func (*InvocationPolicy) Reset

func (x *InvocationPolicy) Reset()

func (*InvocationPolicy) String

func (x *InvocationPolicy) String() string

type SetValue

type SetValue struct {
	FlagValue []string           `protobuf:"bytes,1,rep,name=flag_value,json=flagValue" json:"flag_value,omitempty"`
	Behavior  *SetValue_Behavior `protobuf:"varint,4,opt,name=behavior,enum=blaze.invocation_policy.SetValue_Behavior" json:"behavior,omitempty"`
	// contains filtered or unexported fields
}

func (*SetValue) Descriptor deprecated

func (*SetValue) Descriptor() ([]byte, []int)

Deprecated: Use SetValue.ProtoReflect.Descriptor instead.

func (*SetValue) GetBehavior added in v1.509.7

func (x *SetValue) GetBehavior() SetValue_Behavior

func (*SetValue) GetFlagValue

func (x *SetValue) GetFlagValue() []string

func (*SetValue) ProtoMessage

func (*SetValue) ProtoMessage()

func (*SetValue) ProtoReflect

func (x *SetValue) ProtoReflect() protoreflect.Message

func (*SetValue) Reset

func (x *SetValue) Reset()

func (*SetValue) String

func (x *SetValue) String() string

type SetValue_Behavior added in v1.509.7

type SetValue_Behavior int32
const (
	SetValue_UNDEFINED                    SetValue_Behavior = 0
	SetValue_ALLOW_OVERRIDES              SetValue_Behavior = 1
	SetValue_APPEND                       SetValue_Behavior = 2
	SetValue_FINAL_VALUE_IGNORE_OVERRIDES SetValue_Behavior = 3
)

func (SetValue_Behavior) Descriptor added in v1.509.7

func (SetValue_Behavior) Enum added in v1.509.7

func (SetValue_Behavior) EnumDescriptor deprecated added in v1.509.7

func (SetValue_Behavior) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetValue_Behavior.Descriptor instead.

func (SetValue_Behavior) Number added in v1.509.7

func (SetValue_Behavior) String added in v1.509.7

func (x SetValue_Behavior) String() string

func (SetValue_Behavior) Type added in v1.509.7

func (*SetValue_Behavior) UnmarshalJSON deprecated added in v1.509.7

func (x *SetValue_Behavior) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type UseDefault

type UseDefault struct {
	// contains filtered or unexported fields
}

func (*UseDefault) Descriptor deprecated

func (*UseDefault) Descriptor() ([]byte, []int)

Deprecated: Use UseDefault.ProtoReflect.Descriptor instead.

func (*UseDefault) ProtoMessage

func (*UseDefault) ProtoMessage()

func (*UseDefault) ProtoReflect

func (x *UseDefault) ProtoReflect() protoreflect.Message

func (*UseDefault) Reset

func (x *UseDefault) Reset()

func (*UseDefault) String

func (x *UseDefault) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL