// Override provides a mock function with given fields: newImage, oldImage
8497
func (_m *DFS) Override(newImage string, oldImage string) error {
	ret := _m.Called(newImage, oldImage)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = rf(newImage, oldImage)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
314463
func (c *engineRPC) OverrideBackend(backend *seesaw.BackendOverride) error {
	override := &ipc.Override{Ctx: c.ctx, Backend: backend}
	return c.client.Call("SeesawECU.OverrideBackend", override, nil)
}
942800
func (s *StartTaskInput) SetOverrides(v *TaskOverride) *StartTaskInput {
	s.Overrides = v
	return s
}
532706
func (s *Task) SetOverrides(v *TaskOverride) *Task {
	s.Overrides = v
	return s
}
122768
func Convert_v1_BuildOverridesConfig_To_config_BuildOverridesConfig(in *v1.BuildOverridesConfig, out *config.BuildOverridesConfig, s conversion.Scope) error {
	return autoConvert_v1_BuildOverridesConfig_To_config_BuildOverridesConfig(in, out, s)
}
1338450
func (c *Client) DockerOverride(newImage, oldImage string) error {
	req := DockerOverrideRequest{
		OldImage: oldImage,
		NewImage: newImage,
	}
	return c.call("DockerOverride", req, new(int))
}
179724
func (rm *responseModifier) OverrideHeader(b []byte) error {
	header := http.Header{}
	if err := json.Unmarshal(b, &header); err != nil {
		return err
	}
	rm.header = header
	return nil
}
900737
func (s *PutSigningProfileInput) SetOverrides(v *SigningPlatformOverrides) *PutSigningProfileInput {
	s.Overrides = v
	return s
}
711229
func (mgr *SettingsManager) GetResourceOverrides() (map[string]v1alpha1.ResourceOverride, error) {
	argoCDCM, err := mgr.configmaps.ConfigMaps(mgr.namespace).Get(common.ArgoCDConfigMapName)
	if err != nil {
		return nil, err
	}
	resourceOverrides, err := getResourceOverridesFromConfigMap(argoCDCM)
	if err != nil {
		return nil, err
	}

	return resourceOverrides, nil
}
200112
func (s *RunTaskInput) SetOverrides(v *TaskOverride) *RunTaskInput {
	s.Overrides = v
	return s
}
729760
func (c *ServicedCli) cmdDockerOverride(ctx *cli.Context) {
	args := ctx.Args()

	if len(args) != 2 {
		fmt.Printf("Incorrect Usage.\n\n")
		cli.ShowCommandHelp(ctx, "override")
		return
	}

	oldImage := args[0]
	newImage := args[1]

	if err := c.driver.DockerOverride(newImage, oldImage); err != nil {
		fmt.Fprintln(os.Stderr, err)
	}
}
223820
func (s *stack) OverN(n int32) error {
	if n < 1 {
		str := fmt.Sprintf("attempt to perform over on %d stack items",
			n)
		return scriptError(ErrInvalidStackOperation, str)
	}

	// Copy 2n-1th entry to top of the stack.
	entry := 2*n - 1
	for ; n > 0; n-- {
		so, err := s.PeekByteArray(entry)
		if err != nil {
			return err
		}
		s.PushByteArray(so)
	}

	return nil
}
1193091
func (override *CustomOverride) GetCustomOverride() error {
	req, err := client.NewRequest(
		Config,
		"GET",
		fmt.Sprintf(
			"/papi/v1/custom-overrides/%s",
			override.OverrideID,
		),
		nil,
	)
	if err != nil {
		return err
	}

	res, err := client.Do(Config, req)

	if client.IsError(res) {
		return client.NewAPIError(res)
	}

	newCustomOverrides := NewCustomOverrides()
	if err = client.BodyJSON(res, newCustomOverrides); err != nil {
		return err
	}
	if len(newCustomOverrides.CustomOverrides.Items) == 0 {
		return fmt.Errorf("Custom Override \"%s\" not found", override.OverrideID)
	}

	override.Name = newCustomOverrides.CustomOverrides.Items[0].Name
	override.Description = newCustomOverrides.CustomOverrides.Items[0].Description
	override.DisplayName = newCustomOverrides.CustomOverrides.Items[0].DisplayName
	override.Status = newCustomOverrides.CustomOverrides.Items[0].Status
	override.UpdatedByUser = newCustomOverrides.CustomOverrides.Items[0].UpdatedByUser
	override.UpdatedDate = newCustomOverrides.CustomOverrides.Items[0].UpdatedDate
	override.XML = newCustomOverrides.CustomOverrides.Items[0].XML

	override.parent.AddCustomOverride(override)

	return nil
}
911311
func (p *Parser) overwriteFields(v reflect.Value, fullpath string, path []string, payload string) error {
	for v.Kind() == reflect.Ptr {
		if v.IsNil() {
			panic("encountered nil pointer while handling environment variable " + fullpath)
		}
		v = reflect.Indirect(v)
	}
	switch v.Kind() {
	case reflect.Struct:
		return p.overwriteStruct(v, fullpath, path, payload)
	case reflect.Map:
		return p.overwriteMap(v, fullpath, path, payload)
	case reflect.Interface:
		if v.NumMethod() == 0 {
			if !v.IsNil() {
				return p.overwriteFields(v.Elem(), fullpath, path, payload)
			}
			// Interface was empty; create an implicit map
			var template map[string]interface{}
			wrappedV := reflect.MakeMap(reflect.TypeOf(template))
			v.Set(wrappedV)
			return p.overwriteMap(wrappedV, fullpath, path, payload)
		}
	}
	return nil
}
433221
func (p *Signing) OverrideRemotes(remote string) error {
	if remote != "" {
		var err error
		for _, profile := range p.Profiles {
			err = profile.updateRemote(remote)
			if err != nil {
				return err
			}
		}
		err = p.Default.updateRemote(remote)
		if err != nil {
			return err
		}
	}
	return nil
}
336771
func NewSetOverrideCertificateErrorsArgs(override bool) *SetOverrideCertificateErrorsArgs {
	args := new(SetOverrideCertificateErrorsArgs)
	args.Override = override
	return args
}
798925
func (s *GetSigningProfileOutput) SetOverrides(v *SigningPlatformOverrides) *GetSigningProfileOutput {
	s.Overrides = v
	return s
}